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

html,
body {
    min-height: 100vh;
}

body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--primary-color, #0e404c);
    font-family: var(--font-family, sans-serif);
}

.overlay {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    overflow-y: auto;
}

.content {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    justify-content: center;
    width: 100%;
    max-width: 480px;
}

.logo {
    max-width: 260px;
    width: 100%;
}

.logo img {
    width: 100%;
    height: auto;
    display: block;
}

h1 {
    margin-top: 32px;
    color: var(--accent-color, var(--primary-color, #0e404c));
    font-weight: 300;
    font-size: 1.5rem;
    letter-spacing: 0.1em;
    text-align: center;
}

.contact {
    margin-top: 48px;
    text-align: center;
    color: #ffffff;
}

.contact h2 {
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 8px;
}

.contact p {
    font-size: 0.875rem;
    font-weight: 300;
    margin-bottom: 16px;
    opacity: 0.8;
}

.contact address {
    font-style: normal;
    font-size: 0.875rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact a {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.contact a:hover,
.contact a:focus {
    opacity: 0.7;
}

.contact .extra {
    margin-top: 8px;
    opacity: 0.6;
    font-size: 0.75rem;
}

.made-by {
    margin-top: auto;
    padding-top: 40px;
    opacity: 0.4;
    transition: opacity 0.2s ease;
}

.made-by:hover {
    opacity: 0.7;
}

.made-by a {
    display: block;
}

.made-by img {
    height: 24px;
    width: auto;
    display: block;
}

/* Contact button */
a.btn-contact {
    display: inline-block;
    margin-top: 24px;
    padding: 12px 32px;
    background-color: var(--accent-color, #c08d17);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 400;
    transition: opacity 0.2s ease;
}

a.btn-contact:hover,
a.btn-contact:focus {
    opacity: 0.85;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal:target {
    display: flex;
    animation: fadeIn 0.2s ease-out;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.modal-content {
    position: relative;
    background: white;
    max-width: 480px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease-out;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    padding: 24px;
    border-bottom: 1px solid #e5e5e5;
    gap: 16px;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--primary-color, #0e404c);
    flex: 1;
}

.modal-close {
    color: #666;
    text-decoration: none;
    flex-shrink: 0;
    line-height: 1;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: #000;
}

.modal-body {
    padding: 24px;
}

/* Form styles */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--primary-color, #0e404c);
}

.form-group .required {
    color: #c00;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.875rem;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color, #0e404c);
}

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

/* Honeypot - hidden from users */
.honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
}

/* Turnstile widget */
.cf-turnstile {
    margin-bottom: 16px;
}

.btn-submit {
    width: 100%;
    padding: 12px 24px;
    background-color: var(--primary-color, #0e404c);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.btn-submit:hover:not(:disabled) {
    opacity: 0.85;
}

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

/* Success message */
.form-success {
    text-align: center;
    padding: 24px 0;
    color: var(--primary-color, #0e404c);
}

.form-success svg {
    color: #22c55e;
    margin-bottom: 16px;
}

.form-success p {
    font-size: 1.25rem;
    font-weight: 500;
    margin: 0 0 8px;
}

.form-success span {
    font-size: 0.875rem;
    opacity: 0.7;
}

/* Modal animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@media (max-width: 480px) {
    .logo {
        max-width: 200px;
    }

    h1 {
        font-size: 1.5rem;
        margin-top: 24px;
    }

    .contact {
        margin-top: 32px;
    }

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

    .modal-header,
    .modal-body {
        padding: 16px;
    }

    .modal-header h2 {
        font-size: 1.1rem;
    }
}
