/* Modern Navy Blue Color Scheme */
:root {
    --primary-color: #002366; /* Navy Blue */
    --secondary-color: #1a3e8c;
    --accent-color: #3a7bd5;
    --light-color: #f8f9fa;
    --dark-color: #001a4d;
    --text-color: #333;
    --text-light: #6c757d;
    --success-color: #28a745;
    --border-radius: 8px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8eb 100%);
    padding: 20px;
    min-height: 100vh;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    color: var(--dark-color);
}

.container {
    max-width: 1000px;
    margin: 20px auto;
    background-color: white;
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
}

/* Header Styles */
.form-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    overflow: hidden;
}

.form-header::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.form-header::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.logo-container {
    width: 80px;
    height: 80px;
    padding: 10px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.header-text {
    flex-grow: 1;
    z-index: 1;
}

.header-text h1 {
    font-size: 24px;
    margin-bottom: 5px;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-text h2 {
    font-size: 18px;
    font-weight: 400;
    font-family: 'Poppins', sans-serif;
    color: rgba(255, 255, 255, 0.9);
}

/* Form Sections */
.application-form {
    padding: 30px;
}

.form-section {
    margin-bottom: 40px;
    background-color: white;
    border-radius: var(--border-radius);
    transition: var(--transition);
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}


.section-header h3 {
    margin: 0;
    font-size: 20px;
    color: var(--primary-color);
    position: relative;
}

.section-header h3::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Form Grid Layout */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.full-width {
    grid-column: 1 / -1;
}

.half-width {
    grid-column: span 1;
}

/* Floating Label Form Controls */
.form-group {
    position: relative;
    margin-bottom: 25px;
}

.floating-label input,
.floating-label textarea,
.floating-label select {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 16px;
    background-color: transparent;
    transition: var(--transition);
}

.floating-label textarea {
    min-height: 100px;
    resize: vertical;
}

.floating-label select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 15px;
}

.floating-label label {
    position: absolute;
    top: 15px;
    left: 15px;
    color: var(--text-light);
    pointer-events: none;
    transition: var(--transition);
    background-color: white;
    padding: 0 5px;
}

.floating-label .highlight {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.floating-label input:focus,
.floating-label textarea:focus,
.floating-label select:focus,
.floating-label input:not(:placeholder-shown),
.floating-label textarea:not(:placeholder-shown),
.floating-label select:not(:placeholder-shown) {
    border-color: var(--primary-color);
    outline: none;
}

.floating-label input:focus + label,
.floating-label textarea:focus + label,
.floating-label select:focus + label,
.floating-label input:not(:placeholder-shown) + label,
.floating-label textarea:not(:placeholder-shown) + label,
.floating-label select:not(:placeholder-shown) + label {
    top: -10px;
    left: 10px;
    font-size: 12px;
    color: var(--primary-color);
    background-color: white;
}

.floating-label input:focus ~ .highlight,
.floating-label textarea:focus ~ .highlight,
.floating-label select:focus ~ .highlight {
    width: 100%;
}

/* Cheque Section */
.cheque-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px dashed #ddd;
}

.cheque-section h4 {
    margin-bottom: 20px;
    color: var(--primary-color);
    font-family: 'Poppins', sans-serif;
}

.cheque-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

/* Signature Section */
.signature-section {
    margin-top: 30px;
}

.signature-box {
    padding: 30px;
    text-align: center;
    border: 1px dashed #ddd;
    border-radius: var(--border-radius);
    position: relative;
    margin-top: 20px;
}

.signature-line {
    width: 60%;
    height: 1px;
    background-color: #ddd;
    margin: 0 auto 15px;
    position: relative;
}

.signature-line::before,
.signature-line::after {
    content: '';
    position: absolute;
    top: -5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--accent-color);
}

.signature-line::before {
    left: -15px;
}

.signature-line::after {
    right: -15px;
}

.signature-box span {
    color: var(--text-light);
    font-size: 14px;
}

/* Declaration Text */
.declaration-section {
    margin-top: 30px;
}

.declaration-text {
    background-color: #f8faff;
    padding: 15px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    font-style: italic;
    color: var(--text-color);
    border-left: 3px solid var(--primary-color);
    text-align: center;
}

.declaration-text p {
    margin-bottom: 15px;
    line-height: 1.5;
}

.declaration-text input[type="text"] {
    border: none;
    border-bottom: 1px dashed var(--primary-color);
    padding: 0 5px;
    width: 50px;
    text-align: center;
    font-style: normal;
    background: transparent;
}

.scheme-selector {
    display: inline-block;
    width: 200px;
    margin: 10px auto 0;
}

.signature-section {
    margin-top: 20px;
}

.date-place-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.date-place-row .form-group {
    flex: 1;
}

.signature-box {
    padding: 15px;
    text-align: center;
    border: 1px dashed #ddd;
    border-radius: var(--border-radius);
    margin-top: 15px;
}

.signature-line {
    width: 70%;
    height: 1px;
    background-color: #ddd;
    margin: 0 auto 10px;
}

.signature-box span {
    color: var(--text-light);
    font-size: 13px;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .date-place-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .scheme-selector {
        width: 100%;
    }
}

/* Submit Button */
.form-actions {
    text-align: center;
    margin-top: 40px;
}

.submit-btn {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 35, 102, 0.3);
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.5s ease;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 35, 102, 0.4);
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:active {
    transform: translateY(1px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .form-header {
        flex-direction: column;
        text-align: center;
        padding: 25px 15px;
    }
    
    .header-text h1 {
        font-size: 20px;
    }
    
    .header-text h2 {
        font-size: 16px;
    }
    
    .application-form {
        padding: 20px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .cheque-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .submit-btn {
        width: 100%;
        padding: 15px;
    }
}

/* Print Styles */
@media print {
    body {
        background: none;
        padding: 0;
    }
    
    .container {
        box-shadow: none;
        margin: 0;
        max-width: 100%;
    }
    
    .submit-btn {
        display: none;
    }
    
    @page {
        size: A4;
        margin: 1cm;
    }
}