.cacf-container {
    max-width: 750px; /* Desktop par form ko thoda bada karne ke liye */
    margin: 40px auto;
    padding: 40px; /* Padding thoda badhaya hai desktop par */
    background: #ffffff;
    border-radius: 18px; /* Smooth corners */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.09); /* Subtle shadow */
    animation: fadeInUp 0.8s ease-out;
    border: 1px solid #e0e0e0; /* Light border */
}

.cacf-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px; /* Fields ke beech appropriate gap */
    margin-bottom: 15px; /* Rows ke beech margin */
}

.cacf-container input,
.cacf-container select,
.cacf-container textarea {
    flex: 1; /* Inputs equal width lenge, flex container mein */
    min-width: 280px; /* Fields ki minimum width, jisse chote screens par stack honge */
    padding: 14px; /* Inputs ka padding */
    font-size: 16px; /* Inputs ka font size */
    border: 1px solid #d0d0d0; /* Soft border */
    border-radius: 8px; /* Smooth corners */
    background-color: #fcfcfc; /* Very light background */
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.02); /* Subtle inset shadow */
    transition: all 0.3s ease;
}

.cacf-container input:focus,
.cacf-container select:focus,
.cacf-container textarea:focus {
    border-color: #007bff; /* Primary blue focus color */
    outline: none;
    box-shadow: 0 0 0 4px rgba(0,123,255,0.2); /* Soft focus glow */
    background-color: #ffffff;
}

.cacf-container textarea {
    min-height: 120px; /* Textarea ki height */
    resize: vertical;
}

.cacf-container button {
    background: #007bff;
    color: #fff;
    padding: 14px 30px; /* Button padding */
    font-size: 17px; /* Button font size */
    font-weight: 600; /* Button text bold */
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    width: auto; /* Button ki default width */
    margin-top: 20px; /* Button ke upar margin */
    /* desktop par bhi full width ho sakta hai agar ek hi element hai row mein */
    display: block; /* Button ko block element banaya */
    width: 100%; /* Button ko hamesha full width rakha */
}

.cacf-container button:hover {
    background: #0056b3;
    transform: translateY(-2px); /* Slight lift on hover */
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .cacf-container {
        margin: 20px 10px; /* Mobile par sides se kam margin */
        padding: 25px; /* Mobile par padding adjust kiya */
        max-width: none; /* Mobile par koi max-width nahi */
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05); /* Mobile par lighter shadow */
    }
    .cacf-row {
        flex-direction: column; /* Fields vertical stack honge */
        gap: 12px; /* Mobile par rows ke beech gap */
    }
    .cacf-container input,
    .cacf-container select,
    .cacf-container textarea {
        min-width: unset; /* Mobile par min-width hata diya */
        width: 100%; /* Important: Mobile par fields 100% width lenge, overflow nahi hoga */
        box-sizing: border-box; /* Padding aur border width mein include honge */
        padding: 12px; /* Mobile inputs ka padding */
        font-size: 15px; /* Mobile inputs ka font size */
    }
    .cacf-container button {
        width: 100%; /* Mobile par button full width */
        padding: 12px 25px; /* Mobile button padding */
        font-size: 16px; /* Mobile button font size */
    }
}

/* Popup Styles */
.cacf-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.75); /* Thoda darker overlay */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cacf-popup.is-visible {
    opacity: 1;
    visibility: visible;
}

.cacf-popup-content {
    background-color: #fff;
    padding: 35px 45px; /* Popup padding adjust kiya */
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0,0,0,0.25); /* Stronger shadow */
    font-size: 19px; /* Popup text font size */
    color: #333;
    max-width: 400px; /* Popup ki max width */
    width: 90%; /* Mobile par popup ki width */
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.cacf-popup.is-visible .cacf-popup-content {
    transform: scale(1);
}

.cacf-popup-content p {
    margin: 0;
    line-height: 1.6;
    font-weight: 500;
}

.cacf-popup-content p strong {
    color: #007bff;
}