/* Variables */
:root {
    --primary: #1a365d;
    --primary-dark: #0f2440;
    --secondary: #2c5282;
    --accent: #ed8936;
    --accent-dark: #dd6b20;
    --light: #f7fafc;
    --white: #ffffff;
    --text: #1a202c;
    --text-light: #4a5568;
    --text-muted: #718096;
    --border: #e2e8f0;
    --success: #38a169;
    --warning: #d69e2e;
    --danger: #c53030;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--white);
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    position: relative;
}

.header-top {
    background: var(--primary-dark);
    padding: 0.5rem 0;
    font-size: 0.85rem;
}

.header-top .container {
    display: flex;
    justify-content: flex-end;
    gap: 2rem;
}

.header-top a,
.header-top button {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
}

.header-top a:hover,
.header-top button:hover {
    color: var(--accent);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 80px;
    width: auto;
    background: transparent;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--accent);
}

.cta-button {
    background: var(--accent);
    color: var(--white);
    padding: 0.75rem 1.75rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
    display: inline-block;
    border: none;
    font-family: inherit;
    cursor: pointer;
}

.cta-button:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
}

/* Hamburger */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    margin: 5px 0;
    transition: all 0.3s;
    border-radius: 2px;
}

.hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Footer */
footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 1.5rem;
}

.footer-logo {
    flex-shrink: 0;
}

.footer-logo img {
    height: 70px;
    width: auto;
    max-width: none;
    object-fit: contain;
    background: transparent;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
}

.footer-bottom a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
}

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--white);
    border-radius: 12px;
    width: 90%;
    max-width: 650px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
    z-index: 1;
}

.modal-close:hover {
    background: var(--light);
    color: var(--text);
}

.modal-body {
    padding: 2.5rem;
}

.modal-body .form-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.modal-body .form-title {
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.modal-body .form-subtitle {
    color: var(--text-light);
    font-size: 0.95rem;
}

.modal-body .form-group {
    margin-bottom: 1.25rem;
}

.modal-body .form-label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 500;
    color: var(--text);
    font-size: 0.9rem;
}

.modal-body .form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: var(--white);
}

.modal-body .form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(237, 137, 54, 0.1);
}

.modal-body .form-control::placeholder {
    color: var(--text-muted);
}

.modal-body .form-textarea {
    min-height: 120px;
    resize: vertical;
}

.modal-body .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.modal-body .form-error {
    color: var(--danger);
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: none;
}

.modal-body .form-group.error .form-error {
    display: block;
}

.modal-body .form-group.error .form-control {
    border-color: var(--danger);
}

.modal-body .submit-btn {
    background: var(--accent);
    color: var(--white);
    padding: 0.9rem 2rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    font-family: inherit;
}

.modal-body .submit-btn:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
}

.modal-body .submit-btn:disabled {
    background: var(--text-muted);
    cursor: not-allowed;
    transform: none;
}

.modal-alert {
    padding: 0.85rem 1rem;
    border-radius: 6px;
    margin-bottom: 1.25rem;
    display: none;
    font-size: 0.9rem;
}

.modal-alert.success {
    background: rgba(56, 161, 105, 0.1);
    border: 1px solid var(--success);
    color: var(--success);
}

.modal-alert.error {
    background: rgba(197, 48, 48, 0.1);
    border: 1px solid var(--danger);
    color: var(--danger);
}

.modal-alert.show {
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-dark);
        flex-direction: column;
        padding: 1rem 2rem 1.5rem;
        gap: 0;
        z-index: 1000;
        box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        width: 100%;
    }

    .nav-links .cta-button {
        margin-top: 0.75rem;
        text-align: center;
        width: 100%;
    }

    nav {
        position: relative;
    }

    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .header-top .container {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .logo img {
        height: 65px;
    }

    .footer-logo img {
        height: 55px;
        width: auto;
        object-fit: contain;
    }

    .modal {
        width: 95%;
        max-height: 95vh;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .modal-body .form-grid {
        grid-template-columns: 1fr;
    }
}
