/* Reset and base */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #FAF8F5;
    color: #2D2A26;
    line-height: 1.6;
    min-height: 100vh;
}

/* Typography */
h1, h2, h3 {
    font-family: 'Crimson Pro', Georgia, serif;
    font-weight: 600;
    line-height: 1.2;
}

/* Layout */
.container {
    max-width: 680px;
    margin: 0 auto;
    padding: 40px 24px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    margin-bottom: 48px;
}

.logo {
    font-family: 'Crimson Pro', Georgia, serif;
    font-size: 28px;
    font-weight: 600;
    color: #722F37;
}

/* Hero */
.hero {
    margin-bottom: 56px;
}

h1 {
    font-size: 48px;
    color: #722F37;
    margin: 0 0 24px 0;
}

.subtitle {
    font-size: 20px;
    color: #5C574F;
    margin: 0 0 20px 0;
}

.description {
    font-size: 18px;
    color: #6B665D;
    margin: 0 0 16px 0;
}

.location {
    font-size: 16px;
    color: #8B8579;
    font-style: italic;
    margin: 0;
}

/* Signup section */
.signup {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 24px rgba(114, 47, 55, 0.08);
}

.signup h2 {
    font-size: 28px;
    color: #722F37;
    margin: 0 0 8px 0;
}

.signup > p {
    font-size: 16px;
    color: #6B665D;
    margin: 0 0 24px 0;
}

/* Role buttons */
.role-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
}

.role-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 16px;
    background: #FAF8F5;
    border: 2px solid #E8E4DD;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.role-btn:hover {
    border-color: #C9A227;
    background: #FFFDF8;
}

.role-btn.selected {
    border-color: #722F37;
    background: #FDF9F9;
}

.role-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.role-title {
    font-size: 18px;
    font-weight: 600;
    color: #2D2A26;
    margin-bottom: 4px;
}

.role-desc {
    font-size: 14px;
    color: #8B8579;
}

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

label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #2D2A26;
    margin-bottom: 8px;
}

.optional {
    font-weight: 400;
    color: #8B8579;
}

input[type="email"],
input[type="text"],
textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    font-family: inherit;
    border: 2px solid #E8E4DD;
    border-radius: 8px;
    background: #FFFFFF;
    color: #2D2A26;
    transition: border-color 0.2s ease;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #C9A227;
}

input::placeholder,
textarea::placeholder {
    color: #B5B0A7;
}

textarea {
    resize: vertical;
    min-height: 80px;
}

.submit-btn {
    width: 100%;
    padding: 16px 24px;
    font-size: 18px;
    font-weight: 600;
    font-family: inherit;
    color: #FFFFFF;
    background: #722F37;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.submit-btn:hover {
    background: #8B3A44;
}

.privacy-note {
    font-size: 13px;
    color: #8B8579;
    text-align: center;
    margin: 16px 0 0 0;
}

/* Thank you state */
.thank-you-content {
    text-align: center;
    padding: 24px 0;
}

.thank-you-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: #E8F5E9;
    color: #2E7D32;
    font-size: 32px;
    font-weight: bold;
    border-radius: 50%;
    margin-bottom: 20px;
}

.thank-you-content h3 {
    font-size: 28px;
    color: #722F37;
    margin: 0 0 12px 0;
}

.thank-you-content p {
    font-size: 16px;
    color: #6B665D;
    margin: 0;
}

.signature {
    margin-top: 16px !important;
    font-style: italic;
    color: #8B8579 !important;
}

/* Hidden utility */
.hidden {
    display: none !important;
}

/* Footer */
footer {
    margin-top: auto;
    padding-top: 48px;
    text-align: center;
}

footer p {
    font-size: 14px;
    color: #8B8579;
    margin: 0;
}

footer a {
    color: #722F37;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.made-in {
    margin-top: 12px !important;
    font-size: 13px;
    color: #A9A49B;
}

/* Mobile responsiveness */
@media (max-width: 600px) {
    .container {
        padding: 24px 16px;
    }

    header {
        margin-bottom: 32px;
    }

    .logo {
        font-size: 24px;
    }

    h1 {
        font-size: 32px;
        margin-bottom: 20px;
    }

    .hero {
        margin-bottom: 40px;
    }

    .subtitle {
        font-size: 17px;
        line-height: 1.5;
    }

    .description {
        font-size: 15px;
        line-height: 1.6;
    }

    .location {
        font-size: 14px;
    }

    .signup {
        padding: 24px 20px;
        border-radius: 12px;
    }

    .signup h2 {
        font-size: 24px;
    }

    .signup > p {
        font-size: 15px;
        margin-bottom: 20px;
    }

    .role-buttons {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 24px;
    }

    .role-btn {
        padding: 20px 16px;
        min-height: 100px;
    }

    .role-icon {
        font-size: 28px;
        margin-bottom: 8px;
    }

    .role-title {
        font-size: 17px;
    }

    .role-desc {
        font-size: 13px;
    }

    .form-group {
        margin-bottom: 16px;
    }

    label {
        font-size: 15px;
        margin-bottom: 6px;
    }

    input[type="email"],
    input[type="text"],
    textarea {
        padding: 16px;
        font-size: 16px; /* Prevents iOS zoom on focus */
        border-radius: 10px;
    }

    textarea {
        min-height: 100px;
    }

    .submit-btn {
        padding: 18px 24px;
        font-size: 17px;
        border-radius: 10px;
        min-height: 56px;
    }

    .privacy-note {
        font-size: 12px;
        margin-top: 12px;
    }

    .thank-you-icon {
        width: 56px;
        height: 56px;
        font-size: 28px;
    }

    .thank-you-content h3 {
        font-size: 24px;
    }

    .thank-you-content p {
        font-size: 15px;
    }

    footer {
        padding-top: 32px;
    }

    footer p {
        font-size: 13px;
    }

    footer a {
        padding: 8px 0;
        display: inline-block;
    }
}

/* Extra small devices */
@media (max-width: 380px) {
    .container {
        padding: 20px 12px;
    }

    h1 {
        font-size: 28px;
    }

    .signup {
        padding: 20px 16px;
    }

    .role-btn {
        padding: 16px 12px;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .role-btn:hover {
        border-color: #E8E4DD;
        background: #FAF8F5;
    }

    .role-btn:active {
        border-color: #C9A227;
        background: #FFFDF8;
        transform: scale(0.98);
    }

    .submit-btn:hover {
        background: #722F37;
    }

    .submit-btn:active {
        background: #8B3A44;
        transform: scale(0.98);
    }
}

/* Safe area insets for notched phones */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .container {
        padding-bottom: calc(24px + env(safe-area-inset-bottom));
    }
}
