/* assets/css/style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
    min-height: 100vh;
    background: linear-gradient(145deg, #0a3a4a 0%, #1a6d7a 40%, #2b9c8c 100%);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem 1rem;
}

.form-wrapper {
    max-width: 1100px;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-radius: 32px;
    padding: 2rem 2.5rem;
    box-shadow: 0 30px 60px rgba(0, 20, 30, 0.4);
    margin: 1rem 0;
}

/* Header */
.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    padding-bottom: 1.2rem;
    border-bottom: 2px solid rgba(0, 80, 90, 0.12);
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    font-size: 2.4rem;
    color: #0e5c6b;
    background: white;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 40, 50, 0.15);
}

.logo-text {
    font-weight: 800;
    font-size: 1.8rem;
    letter-spacing: -0.5px;
    color: #083b45;
}
.logo-text span {
    color: #1f8a7a;
}

.contact-header {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: #1f4b55;
}

.contact-header i {
    margin-right: 5px;
    color: #1f7a7a;
    width: 1.2rem;
}

.contact-header a {
    color: #0b4b55;
    text-decoration: none;
    font-weight: 500;
}
.contact-header a:hover {
    color: #0d7a7a;
    text-decoration: underline;
}

/* Progress bar */
.progress-container {
    margin: 1.5rem 0 2rem;
}

.progress-bar {
    display: flex;
    justify-content: space-between;
    position: relative;
    padding: 0 10px;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 18px;
    left: 30px;
    right: 30px;
    height: 4px;
    background: #d4e7ea;
    border-radius: 4px;
    z-index: 0;
}

.progress-bar .step {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
    cursor: pointer;
}

.progress-bar .step .circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #d4e7ea;
    color: #1b5c64;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid transparent;
    transition: all 0.3s;
}

.progress-bar .step.active .circle {
    background: #197a7a;
    color: white;
    border-color: #0b4b4b;
    box-shadow: 0 4px 12px rgba(0, 70, 70, 0.3);
}

.progress-bar .step.completed .circle {
    background: #48a38f;
    color: white;
}

.progress-bar .step .label {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 6px;
    color: #1a5f66;
    text-align: center;
    letter-spacing: 0.3px;
}

/* Steps */
.form-step {
    display: none;
    animation: fadeIn 0.4s ease;
}

.form-step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #07313b;
    margin-bottom: 1.8rem;
    border-left: 6px solid #1f8f7a;
    padding-left: 1rem;
}

/* Grid layouts */
.row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem 2rem;
}

.row-3col {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem 1.8rem;
}

.full-width {
    grid-column: 1 / -1;
}

/* Form elements */
.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    color: #124c55;
    margin-bottom: 5px;
}

.form-group label .required {
    color: #c0392b;
    margin-left: 2px;
}

.form-group label i {
    margin-right: 6px;
    color: #1a7a7a;
    width: 1.2rem;
}

.form-control {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 2px solid #cde0e3;
    border-radius: 16px;
    font-size: 0.95rem;
    background: white;
    transition: all 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: #1b8a7a;
    box-shadow: 0 0 0 4px rgba(26, 130, 120, 0.15);
}

.form-control.error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

select.form-control {
    appearance: auto;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.2rem;
    padding-top: 4px;
}

.checkbox-group label {
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"],
.checkbox-group input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #197a7a;
    cursor: pointer;
}

/* File upload preview */
.file-upload-wrapper {
    border: 2px dashed #81b4b4;
    padding: 1rem;
    border-radius: 20px;
    background: #f2fbfb;
}

.file-upload-wrapper .preview {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.file-upload-wrapper .preview img {
    max-width: 120px;
    max-height: 120px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid #d4e7ea;
}

.file-upload-wrapper .preview .file-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #e8f4f5;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
}

/* Buttons */
.btn-group {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2.5rem;
    padding-top: 1.8rem;
    border-top: 2px solid #dceeef;
}

.btn {
    padding: 0.75rem 2.5rem;
    border: none;
    border-radius: 40px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.25s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary {
    background: #116d6d;
    color: white;
    box-shadow: 0 6px 16px rgba(0, 70, 70, 0.25);
}

.btn-primary:hover {
    background: #0b5a5a;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 70, 70, 0.35);
}

.btn-secondary {
    background: #e2f0f0;
    color: #124f57;
}

.btn-secondary:hover {
    background: #cfe2e5;
    transform: translateY(-2px);
}

.btn-success {
    background: #1f8f7a;
    color: white;
}

.btn-success:hover {
    background: #157a66;
    transform: translateY(-2px);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Autosave indicator */
.autosave-indicator {
    font-size: 0.8rem;
    color: #5a8a8a;
    text-align: right;
    margin-top: 8px;
}

.autosave-indicator i {
    margin-right: 4px;
}

/* Responsive */
@media (max-width: 850px) {
    .form-wrapper {
        padding: 1.5rem;
    }
    .row-2col, .row-3col {
        grid-template-columns: 1fr;
    }
    .form-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }
    .contact-header {
        gap: 0.6rem 1rem;
    }
    .progress-bar {
        flex-wrap: wrap;
        gap: 0.3rem;
    }
    .progress-bar .step {
        flex: 1 0 22%;
    }
    .progress-bar .step .label {
        font-size: 0.55rem;
    }
}

@media (max-width: 500px) {
    .form-wrapper {
        padding: 1rem;
    }
    .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
    .btn-group {
        flex-wrap: wrap;
        justify-content: center;
    }
    .logo-text {
        font-size: 1.4rem;
    }
}