/* ============================= */
/* GLOBAL RESET (SAFE) */
/* ============================= */
.cdl-frontend-form,
.cdl-frontend-form * {
    color: #000 !important;
    opacity: 1 !important;
    visibility: visible !important;
    mix-blend-mode: normal !important;
}

/* ============================= */
/* LOGIN PAGE */
/* ============================= */
.cdl-login-wrapper {
    max-width: 720px;
    margin: 80px auto;
    text-align: center;
    padding: 20px;
}

.cdl-login-wrapper h1 {
    font-size: 32px;
    margin-bottom: 15px;
    color: #000;
    font-weight: 600;
}

.cdl-login-intro {
    font-size: 16px;
    margin-bottom: 30px;
    color: #555;
}

.cdl-login-box {
    background: #ffffff;
    color: #000;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 25px rgba(0,0,0,0.08);
}

.cdl-login-box h3 {
    margin-bottom: 10px;
}

.cdl-login-box p {
    font-size: 14px;
    margin-bottom: 20px;
}

/* GOOGLE LOGIN */
.cdl-google-login {
    margin-bottom: 20px;
}

/* CODE LOGIN */
.cdl-code-login input {
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #ddd;
    margin-bottom: 12px;
    font-size: 15px;
}

.cdl-code-login button {
    width: 100%;
    padding: 12px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.cdl-code-login button:hover {
    background: #005f7f;
}

/* ============================= */
/* LANGUAGE SWITCHER */
/* ============================= */
.cdl-language-switcher {
    text-align: right;
    margin: 20px auto;
    max-width: 850px;
}

.cdl-language-switcher label {
    margin-right: 10px;
    font-size: 14px;
}

.cdl-language-switcher select {
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #ddd;
    font-size: 14px;
    color: #000;
    background: #fff;
}

/* ============================= */
/* FORM CONTAINER */
/* ============================= */
.cdl-frontend-form {
    max-width: 850px;
    margin: 30px auto;
    background: #ffffff;
    padding: 35px 40px;
    border-radius: 12px;
    box-shadow: 0 6px 25px rgba(0,0,0,0.08);
    font-family: 'Poppins', sans-serif;
}

/* ============================= */
/* ACF FIELD LABELS */
/* ============================= */
.cdl-frontend-form .acf-label label {
    font-weight: 500;
    margin-bottom: 6px;
    display: block;
    color: #000 !important;
}

/* ============================= */
/* INPUTS */
/* ============================= */
.cdl-frontend-form input,
.cdl-frontend-form textarea,
.cdl-frontend-form select {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 18px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    background: #fff !important;
    color: #000 !important;
    -webkit-text-fill-color: #000 !important;
}

/* PLACEHOLDER */
.cdl-frontend-form input::placeholder,
.cdl-frontend-form textarea::placeholder {
    color: #666 !important;
    opacity: 1;
}

/* ============================= */
/* ACF GROUP SPACING */
/* ============================= */
.cdl-frontend-form .acf-field {
    margin-bottom: 15px;
}

.cdl-frontend-form .acf-field-group {
    padding: 20px;
    background: #fafafa;
    border-radius: 8px;
    margin-bottom: 25px;
}

/* ============================= */
/* SUBMIT BUTTON */
/* ============================= */
.cdl-submit {
    display: block;
    margin: 25px auto 0;
    padding: 14px 30px;
    background: #0073aa;
    color: #fff !important;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cdl-submit:hover {
    background: #005f7f;
    transform: translateY(-2px);
}

/* ============================= */
/* SUCCESS MESSAGE */
/* ============================= */
.cdl-success-message {
    text-align: center;
    margin-top: 25px;
    font-weight: 600;
    color: green;
}

/* ============================= */
/* RESPONSIVE */
/* ============================= */
@media (max-width: 768px) {
    .cdl-frontend-form {
        padding: 25px 20px;
    }

    .cdl-login-wrapper {
        margin: 40px auto;
    }
}

@media (max-width: 480px) {
    .cdl-frontend-form input,
    .cdl-frontend-form textarea,
    .cdl-frontend-form select {
        font-size: 14px;
    }

    .cdl-submit {
        font-size: 15px;
        padding: 12px 20px;
    }
}