/* ============================================
   APPLICATION FORM STYLES
   Beautiful, Professional, Modern Design
   ============================================ */

.smartswan-application-form-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 0;
}

.application-form {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* Form Sections */
.form-section {
    padding: 2.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy-blue);
    margin-bottom: 1.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--teal-turquoise);
    display: inline-block;
}

/* Form Rows & Groups */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
}

.required {
    color: #e53e3e;
    font-weight: 700;
}

/* Tooltip Icon */
.tooltip-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: var(--teal-turquoise);
    color: #ffffff;
    border-radius: 50%;
    cursor: help;
    font-size: 12px;
    transition: all 0.3s ease;
}

.tooltip-icon:hover {
    background: var(--teal-dark);
    transform: scale(1.1);
}

.tooltip-icon::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) scale(0);
    background: #1a202c;
    color: #ffffff;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 400;
    white-space: nowrap;
    max-width: 300px;
    white-space: normal;
    width: max-content;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    line-height: 1.5;
}

.tooltip-icon::after {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%) scale(0);
    border: 6px solid transparent;
    border-top-color: #1a202c;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tooltip-icon:hover::before,
.tooltip-icon:hover::after {
    transform: translateX(-50%) scale(1);
    opacity: 1;
}

/* Form Inputs */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    color: #2d3748;
    background: #ffffff;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--teal-turquoise);
    box-shadow: 0 0 0 3px rgba(77, 191, 184, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234a5568' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* File Upload */
.file-upload-wrapper {
    position: relative;
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.file-upload-label {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, var(--teal-turquoise) 0%, var(--teal-dark) 100%);
    color: #ffffff;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(77, 191, 184, 0.2);
}

.file-upload-label:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(77, 191, 184, 0.3);
}

.file-upload-label i {
    font-size: 1.25rem;
}

.file-name {
    display: inline-block;
    margin-left: 1rem;
    color: #4a5568;
    font-size: 0.875rem;
    font-style: italic;
}

/* Declaration Box */
.declaration-box {
    background: linear-gradient(135deg, rgba(77, 191, 184, 0.05) 0%, rgba(255, 255, 255, 0.9) 100%);
    border-left: 4px solid var(--teal-turquoise);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.declaration-box p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.7;
    color: #2d3748;
    font-style: italic;
}

/* Checkbox Group */
.checkbox-group {
    margin-bottom: 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: 500;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--teal-turquoise);
}

/* Form Actions */
.form-actions {
    padding: 2rem 2.5rem;
    background: #f7fafc;
    display: flex;
    justify-content: center;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.125rem 3rem;
    background: linear-gradient(135deg, var(--teal-turquoise) 0%, var(--teal-dark) 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(77, 191, 184, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-submit::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: left 0.5s;
}

.btn-submit:hover::before {
    left: 100%;
}

.btn-submit:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(77, 191, 184, 0.4);
}

.btn-submit:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-loader i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Form Message */
.form-message {
    margin: 2rem 2.5rem 0;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive Design */
@media (max-width: 768px) {
    .smartswan-application-form-wrapper {
        padding: 2rem 0;
    }

    .form-section {
        padding: 1.5rem;
    }

    .form-section-title {
        font-size: 1.25rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-actions {
        padding: 1.5rem;
    }

    .btn-submit {
        width: 100%;
        justify-content: center;
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .tooltip-icon::before {
        max-width: 250px;
        font-size: 0.8125rem;
    }

    .file-upload-label {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .form-section {
        padding: 1rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .declaration-box {
        padding: 1rem;
    }

    .tooltip-icon::before {
        max-width: 200px;
        left: auto;
        right: 0;
        transform: translateX(0) scale(0);
    }

    .tooltip-icon:hover::before {
        transform: translateX(0) scale(1);
    }

    .tooltip-icon::after {
        left: auto;
        right: 10px;
        transform: translateX(0) scale(0);
    }

    .tooltip-icon:hover::after {
        transform: translateX(0) scale(1);
    }
}

