/**
 * Divi Form CAPTCHA CSS
 */

.dfc-captcha-wrap {
    position: relative;
    display: block;
    clear: both;
    margin: 10px auto;
    font-family: inherit;
    width: 100%;
    --icon-color: #0c71c3; /* Default color if not set in JS */
}

.dfc-instruction {
    font-weight: bold;
    text-align: center;
    display: block;
    margin-bottom: 15px;
    font-size: 14px;
    color: #333;
}

.dfc-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin: 15px 0;
}

/* Base icon styles */
.dfc-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ddd;
    background-color: #fff;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dfc-icon:hover {
    border-color: #0073aa;
    box-shadow: 0 0 5px rgba(0, 115, 170, 0.3);
}

.dfc-icon.selected {
    border-color: #0073aa;
    background-color: #e6f2f9;
}

/* Icon size variations - with !important to override any other styles */
.dfc-size-small .dfc-icon {
    width: 40px !important;
    height: 40px !important;
}

.dfc-size-small .dfc-icon i {
    font-size: 24px;
    color: var(--icon-color, #0c71c3) !important;
}

.dfc-size-medium .dfc-icon {
    width: 60px !important;
    height: 60px !important;
}

.dfc-size-medium .dfc-icon i {
    font-size: 32px !important;
}

.dfc-size-large .dfc-icon {
    width: 80px !important;
    height: 80px !important;
}

.dfc-size-large .dfc-icon i {
    font-size: 42px !important;
}

.dfc-icon i {
    color: #333;
}

.dfc-error {
    color: #cc0000;
    text-align: center;
    margin-top: 10px;
    font-size: 13px;
    display: none;
}
