:root {
    --primary-dark: #2053c9;
    --primary-light: #e9f0ff;
    --accent-color: #ff6a3d;
    --text-light: #666666;
    --light-grey: #f5f5f5;
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
}

/* CONTAINER STYLES */
.duha_container {
    width: 100%;
    max-width: 900px;
    margin: 3rem auto;
    padding: 0;
}

#mainfirst {
    background-color: #fff;
    box-shadow: var(--shadow-lg), 0 20px 60px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transform: translateY(0);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

#mainfirst:hover {
    transform: translateY(-5px);
}

/* HEADER STYLES */
.duha_header {
    background:var(--primary-color);
    color: white;
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.duha_header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 70%);
    z-index: 1;
    pointer-events: none;
    animation: pulse 8s infinite alternate ease-in-out;
}

.duha_header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(to top, rgba(0,0,0,0.05), rgba(0,0,0,0));
    z-index: 1;
}

.duha_header h1 {
    color:white;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    position: relative;
    z-index: 2;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.duha_header h2 {
    color:white;
    font-size: 1.4rem;
    font-weight: 500;
    opacity: 0.95;
    position: relative;
    z-index: 2;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.header-icon {
    width: 36px;
    height: 36px;
    margin-right: 8px;
}

/* SECTION STYLES */
.duha_section {
    padding: 2.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    background-color: white;
    position: relative;
}

.duha_section:last-child {
    border-bottom: none;
}

.duha_section h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    color: var(--primary-dark);
    margin-bottom: 1.8rem;
    font-weight: 700;
    position: relative;
    padding-left: 2.5rem;
    display: inline-block;
}

.section-icon {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    color: var(--primary-color);
}

/* FORM STYLES */
.duha_form {
    display: block;
}

.dh_form_group {
    margin-bottom: 2.2rem;
    position: relative;
}

.dh_form_group:last-child {
    margin-bottom: 0;
}

.dh_form_group label {
    display: block;
    margin-bottom: 0.7rem;
    font-weight: 600;
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.label-icon {
    width: 18px;
    height: 18px;
    color: var(--primary-color);
}

.input-wrapper {
    position: relative;
}

.dh_form_group input[type="text"],
.dh_form_group input[type="tel"],
.dh_form_group textarea {
    width: 100%;
    padding: 1rem 1.2rem 1rem 2.5rem;
    font-size: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-md);
    color: var(--text-color);
    background-color: #fff;
    transition: all 0.25s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    font-family: 'Poppins', sans-serif;
}

.input-icon {
    position: absolute;
    left: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-light);
    pointer-events: none;
    transition: all 0.3s ease;
}

textarea + .input-icon {
    top: 1.5rem;
}

.dh_form_group input[type="text"]:hover,
.dh_form_group input[type="tel"]:hover,
.dh_form_group textarea:hover {
    border-color: #c0c8d0;
}

.dh_form_group input[type="text"]:focus,
.dh_form_group input[type="tel"]:focus,
.dh_form_group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(44,110,255,0.15);
    outline: none;
}

.dh_form_group input[type="text"]:focus + .input-icon,
.dh_form_group input[type="tel"]:focus + .input-icon,
.dh_form_group textarea:focus + .input-icon {
    color: var(--primary-color);
}

.dh_form_group textarea {
    min-height: 160px;
    resize: vertical;
    line-height: 1.6;
}

/* RATING STYLES */
.dh_rating_container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background-color: var(--primary-light);
    padding: 1.5rem;
    border-radius: var(--border-radius-md);
    position: relative;
    overflow: hidden;
}

.dh_rating_container::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, transparent 50%, rgba(255,255,255,0.1) 50%);
    border-radius: 0 0 var(--border-radius-md) 0;
}

.dh_rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
}

.dh_rating input {
    display: none;
}

.dh_rating label {
    cursor: pointer;
    margin: 0 5px;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}

.star-icon {
    width: 40px;
    height: 40px;
    color: #e0e0e0;
    transition: all 0.3s ease;
}

.dh_rating:hover label {
    transform: scale(0.9);
}

.dh_rating:hover label:hover .star-icon,
.dh_rating:hover label:hover ~ label .star-icon,
.dh_rating input:checked ~ label .star-icon {
    color: #ffd700;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
    transform: scale(1.1);
}

.rating_text {
    margin-top: 0.7rem;
    font-size: 0.95rem;
    color: var(--text-light);
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.rating_text strong {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.2rem;
}

/* BUTTON STYLES */
.duha_form_submit {
    padding: 1.8rem 2.5rem 2.5rem;
    text-align: center;
    background-color: white;
}

.duha_button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1rem 3rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    border-radius: var(--border-radius-md);
    font-family: 'Montserrat', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 12px rgba(32, 83, 201, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.button-icon {
    width: 20px;
    height: 20px;
}

.duha_button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: all 0.3s ease;
}

.duha_button:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    box-shadow: 0 6px 20px rgba(32, 83, 201, 0.4);
    transform: translateY(-3px);
}

.duha_button:hover::before {
    left: 100%;
    transition: 0.7s;
}

.duha_button:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(32, 83, 201, 0.3);
}

/* ALERT STYLES */
.duha_alert {
    padding: 1.2rem 1.5rem;
    margin: 1.8rem 2.5rem;
    border-radius: var(--border-radius-md);
    font-size: 0.95rem;
    box-shadow: var(--shadow-sm);
    position: relative;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.alert-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.duha_alert_success {
    background-color: rgba(43, 138, 62, 0.08);
    border-left: 5px solid #2b8a3e;
    color: #2b8a3e;
}

.duha_alert_error {
    background-color: rgba(224, 49, 49, 0.08);
    border-left: 5px solid #e03131;
    color: #e03131;
}

.duha_alert ul {
    margin: 0.7rem 0 0 1.2rem;
}

.duha_alert li {
    margin-bottom: 0.4rem;
}

.duha_alert li:last-child {
    margin-bottom: 0;
}

/* RESPONSIVE STYLES */
@media (max-width: 768px) {
    .duha_container {
        margin: 1rem auto;
    }
    
    
    .duha_header h1 {
        font-size: 2rem;
    }
    
    .duha_header h2 {
        font-size: 1.2rem;
    }
    
    .duha_section {
        padding: 2rem;
    }
    
    .duha_alert {
        margin: 1.2rem 2rem;
    }
    
    .duha_form_submit {
        padding: 1.2rem 2rem 2rem;
    }
    
    .star-icon {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 480px) {
    .duha_header h1 {
        font-size: 1.7rem;
    }
    
    .duha_header h2 {
        font-size: 1.1rem;
    }
    
    .duha_section {
        padding: 1.8rem 1.5rem;
    }
    
    .duha_section h3 {
        font-size: 1.2rem;
        padding-left: 2rem;
    }
    
    .section-icon {
        width: 20px;
        height: 20px;
    }
    
    .duha_button {
        width: 100%;
        padding: 0.9rem 1rem;
    }
    
    .star-icon {
        width: 30px;
        height: 30px;
    }
    
    .dh_form_group {
        margin-bottom: 1.8rem;
    }
}

/* ANIMATIONS */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.05); opacity: 0.8; }
    100% { transform: scale(1); opacity: 0.6; }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0px); }
}

.duha_section {
    animation: fadeIn 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    animation-fill-mode: both;
}

.duha_section:nth-child(2) {
    animation-delay: 0.15s;
}

.duha_section:nth-child(3) {
    animation-delay: 0.25s;
}

.duha_section:nth-child(4) {
    animation-delay: 0.35s;
}

.section-icon {
    animation: float 3s ease-in-out infinite;
}

/* ACCESSIBILITY IMPROVEMENTS */
input:focus-visible,
textarea:focus-visible,
button:focus-visible {
    outline: 3px solid var(--primary-light);
    outline-offset: 2px;
}

/* PRINT STYLES */
@media print {
    body {
        background-color: white;
        background-image: none;
        font-size: 14px;
    }
    
    .duha_container {
        max-width: 100%;
        margin: 0;
        padding: 0;
        box-shadow: none;
    }
    
    .duha_header {
        background: white !important;
        color: black;
        padding: 1rem;
        text-align: center;
    }
    
    .duha_button {
        display: none;
    }
    
    .duha_section {
        break-inside: avoid;
    }
    
    .section-icon, .input-icon, .label-icon, .star-icon, .header-icon, .button-icon, .alert-icon {
        display: none;
    }
}

/* CUSTOM SCROLLBAR */
textarea::-webkit-scrollbar {
    width: 8px;
}

textarea::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

textarea::-webkit-scrollbar-thumb {
    background: #c0c0c0;
    border-radius: 10px;
    transition: all 0.3s ease;
}

textarea::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}