/* --- Basic Setup --- */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #f4f4f4;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    min-height: 100vh;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* --- Form Container --- */
.form-container {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px;
    overflow: hidden;
}

/* --- Form Header (Logo & Title) --- */
.form-header {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #d92027, #ff4d4d);
    color: white;
}

.logo-circle {
    width: 80px;
    height: 80px;
    background-color: #ffffff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 15px auto;
    font-weight: 700;
    font-size: 18px;
    color: #d92027;
    border: 4px solid #ff8a8a;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.header-line {
    border: 0;
    height: 2px;
    background: #ff8a8a;
    width: 50%;
    margin: 10px auto 20px auto;
}

.form-header h2 {
    margin: 0;
    font-weight: 700;
}

.form-header p {
    font-size: 14px;
    opacity: 0.9;
}

/* --- Form Body --- */
form {
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    gap: 15px;
}

/* Full-width inputs inside a flex group */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
}

.form-group input:focus {
    outline: none;
    border-color: #d92027;
    box-shadow: 0 0 0 2px rgba(217, 32, 39, 0.1);
}

.upload-title {
    font-weight: 600;
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

/* --- Custom File Upload --- */
.file-upload {
    display: block; /* Stack them */
}
.file-upload label {
    font-weight: 500;
    font-size: 15px;
    color: #555;
    margin-bottom: 8px;
    display: block;
}
input[type="file"] {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
}
input[type="file"]::file-selector-button {
    background-color: #d92027;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 10px;
    transition: background-color 0.3s ease;
}
input[type="file"]::file-selector-button:hover {
    background-color: #b31a20;
}


/* --- Submit Button --- */
.submit-btn {
    background: #d92027;
    color: white;
    border: none;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(217, 32, 39, 0.3);
}

.submit-btn:hover {
    background: #b31a20;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 32, 39, 0.4);
}

/* --- "Jor Daar" Success Modal & Animation --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none; /* JS से दिखाने के लिए Hidden */
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    width: 90%;
    max-width: 400px;
    transform: scale(0.9);
    animation: zoomIn 0.3s 0.1s ease-out forwards;
}

.modal-content h2 {
    color: #333;
    margin-bottom: 10px;
}
.modal-content p {
    color: #666;
    margin-bottom: 25px;
}
.modal-content .submit-btn {
    width: auto;
    padding: 10px 30px;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Checkmark Animation */
.success-animation {
    margin: 0 auto 20px auto;
}
.checkmark {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: block;
    stroke-width: 3;
    stroke: #4CAF50; /* Green */
    stroke-miterlimit: 10;
    box-shadow: inset 0px 0px 0px #4CAF50;
    animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
}
.checkmark__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 3;
    stroke-miterlimit: 10;
    stroke: #4CAF50;
    fill: none;
    animation: stroke .6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}
.checkmark__check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke .3s cubic-bezier(0.65, 0, 0.45, 1) .8s forwards;
}
@keyframes stroke {
    100% { stroke-dashoffset: 0; }
}
@keyframes scale {
    0%, 100% { transform: none; }
    50% { transform: scale3d(1.1, 1.1, 1); }
}
@keyframes fill {
    100% { box-shadow: inset 0px 0px 0px 40px #4CAF50; }
}