﻿.frc-captcha * {
    margin: 0;
    padding: 0;
    border: 0;
    text-align: left; /* Adjusted to left to match typical form alignment */

    font-size: 1rem;
    line-height: 1.5;
    color: #495057; /* Adjusted for a more common text color */
    background-color: #fff; /* Assuming a light theme form */
}

.frc-captcha {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Added subtle shadow */
    border: 1px solid #ddd; /* Lighter border */
    background-color: #fff;
    border-radius: 3px;
    padding: 6px;
}

    .frc-captcha b {
        font-weight: bold;
    }

.frc-container {
    display: flex;
    align-items: center;
    min-height: 52px;
}

.frc-icon {
    fill: #4f7485; /* Use the current text color */
}

    .frc-icon.frc-warning {
        fill: #C00;
    }

.frc-success .frc-icon {
    animation: frc-fade-in 1s both ease-in;
}

.frc-content {
    white-space: nowrap;
    display: flex;
    flex-direction: column;
    margin: 4px 6px 0 0;
    overflow-x: auto;
    flex-grow: 1;
}

.frc-banner {
    display:none;
    position: absolute;
    bottom: 0px;
    right: 6px;
    line-height: 1;
}

    .frc-banner * {
        font-size: 10px;
        opacity: 0.8;
        text-decoration: none;
    }

.frc-progress {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    margin: 3px 0;
    height: 4px;
    border: none;
    background-color: #eee;
    color: #222;
    width: 100%;
    transition: all 0.5s linear;
}

    .frc-progress::-webkit-progress-bar {
        background: #eee;
    }

    .frc-progress::-webkit-progress-value {
        background: #4f7485;
    }

    .frc-progress::-moz-progress-bar {
        background: #222;
    }

.frc-button {
    cursor: pointer;
    text-align: left;
    font-weight: 600;
    border-radius: 4px; /* Slightly rounded corners */
    transition: background-color 0.3s ease; /* Smooth transition for hover effect */
}

    .frc-button:focus {
        border: 1px solid #333;
    }

    .frc-button:hover {
        /*background-color: #4f7485; */
        color: #4f7485;
    }

.frc-captcha-solution {
    display: none;
}

.frc-err-url {
    text-decoration: underline;
    font-size: 0.9em;
}

/* RTL support */

.frc-rtl {
    direction: rtl;
}

    .frc-rtl .frc-content {
        margin: 4px 0 0 6px;
    }

.frc-banner.frc-rtl {
    left: 6px;
    right: auto;
}

/* Dark theme */

.dark.frc-captcha {
    color: #fff;
    background-color: #222;
    border-color: #333;
}

    .dark.frc-captcha * {
        color: #fff;
    }

    .dark.frc-captcha button {
        background-color: #444;
    }

.dark .frc-icon {
    fill: #fff;
    stroke: #fff;
}

.dark .frc-progress {
    background-color: #444;
}

    .dark .frc-progress::-webkit-progress-bar {
        background: #444;
    }

    .dark .frc-progress::-webkit-progress-value {
        background: #ddd;
    }

    .dark .frc-progress::-moz-progress-bar {
        background: #ddd;
    }

@keyframes frc-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}
