﻿:root {
    --primary-color: #0d47a1;
    --secondary-color: #1565c0;
    --accent-color: #ff6f00;
    --light-bg: #f5f5f5;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    padding: 30px 0;
    font-size: .9rem;
}

 

.form-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 40px;
    max-width: 1000px;
    margin: 0 auto;
    padding-top: 20px;
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
    /*border-bottom: 3px solid var(--primary-color);
    padding-bottom: 20px;*/
}

.form-header h1 {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 1.5rem;
    text-transform:uppercase;
}

.form-header p {
    color: #666;
    font-size: 1rem;
    margin: 0;
}

.form-section {
    margin-bottom: 35px;
}

.section-title {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    font-size: 1.3rem;
}

.form-label {
    font-weight: 600;
    color: var(--primary-color);
   /* margin-bottom: 4px;*/
    display: flex;
    align-items: center;
    gap: 5px;
}

.form-label .required {
    color: #dc3545;
    font-size: 1.1rem;
}

.form-control,
.form-select {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 9px 15px;
    font-size: .9rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 71, 161, 0.15);
}

.form-control.is-invalid:focus,
.form-select.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.15);
}

.invalid-feedback {
    display: block;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 5px;
}

.form-check {
    padding-left: 0;
    margin-bottom: 12px;
}

.form-check-input {
    width: 20px;
    height: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-label {
    cursor: pointer;
    margin-left: 8px;
    user-select: none;
    color: #333;
    font-weight: 500;
}

.form-check-inline {
    margin-right: 30px;
    margin-bottom: 10px;
}

.checkbox-group,
.radio-group {
    margin: 15px 0;
}

/* Center checkbox and label inside checkbox groups */
.checkbox-group .text-center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 0;
}

.checkbox-group .form-check-label {
    margin-left: 8px;
}

.textarea-label {
    font-size: 0.9rem;
    color: #666;
    margin-top: 5px;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.legal-content {
    background: #f8f9fa;
    border-left: 4px solid var(--accent-color);
    padding: 15px;
    border-radius: 4px;
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 15px;
    font-size: 0.92rem;
    line-height: 1.6;
    color: #333;
}

.legal-content h4 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
}

.legal-content p {
    margin-bottom: 10px;
}

.btn-submit {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-weight: 600;
    padding: 14px 40px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #0a3a7a, #0d47a1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 71, 161, 0.3);
    color: white;
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-reset {
    background: #6c757d;
    color: white;
    font-weight: 600;
    padding: 14px 40px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-reset:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.3);
    color: white;
}

.form-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.form-buttons .btn {
    flex: 1;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.loading-spinner {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.loading-spinner.active {
    display: flex;
}

.success-message,
.error-message {
    display: none;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
    animation: slideDown 0.3s ease;
}

.success-message {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .form-container {
        padding: 25px;
    }

    .form-header h1 {
        font-size: 1.4rem;
        font-weight:500;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-buttons {
        flex-direction: column;
    }

    .form-check-inline {
        display: block;
        margin-right: 0;
        margin-bottom: 15px;
    }
}

/* Custom Alert Styles */
.custom-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.custom-alert-overlay.active {
    opacity: 1;
    visibility: visible;
}

.custom-alert-box {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 400px;
    width: 90%;
    transform: scale(0.7);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.custom-alert-overlay.active .custom-alert-box {
    transform: scale(1);
}

.custom-alert-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.custom-alert-icon.success {
    color: #28a745;
}

.custom-alert-icon.error {
    color: #dc3545;
}

.custom-alert-icon.warning {
    color: #ffc107;
}

.custom-alert-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
}

.custom-alert-message {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.5;
}

.custom-alert-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.custom-alert-btn:hover {
    background: var(--secondary-color);
}
