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

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

@font-face {
    font-family: 'Cartograph CF';
    src: url('./CartographMonoCF-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: 'Cartograph CF', 'Inter', system-ui, -apple-system, sans-serif;
    background: #FEFAF6;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    color: #4D372A;
    line-height: 1.6;
    padding: 20px 0;
}

.container {
    width: 100%;
    max-width: 500px;
    padding: 20px;
}

.splash-card {
    background: transparent;
    overflow: visible;
}

.logo-section {
    background: transparent;
    color: #4D372A;
    text-align: center;
    padding: 40px 30px 10px;
}

.brand-logo {
    height: 100px;
    width: auto;
    margin-bottom: 4px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.subtitle {
    font-size: 1.1rem;
    font-weight: 700;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.welcome-heading {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: #4D372A;
    margin-top: 4px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
}

.form-section {
    padding: 10px 30px 40px;
}

.welcome-text {
    text-align: center;
    margin-bottom: 30px;
    color: #4D372A;
    font-size: 1rem;
    line-height: 1.5;
    text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.8);
}

.wifi-form {
    margin-bottom: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #4D372A;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: #fafbfc;
}

.form-group input:focus {
    outline: none;
    border-color: #4D372A;
    box-shadow: 0 0 0 3px rgba(77, 55, 42, 0.1);
    background: white;
}

.form-group input:valid {
    border-color: #4D372A;
}

.connect-button {
    width: 100%;
    background: #4D372A;
    color: #FEFAF6;
    border: none;
    padding: 16px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.connect-button:hover {
    background: #3a2a20;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(77, 55, 42, 0.3);
}

.connect-button:active {
    transform: translateY(0);
}

.connect-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.terms-text {
    text-align: center;
    font-size: 0.85rem;
    color: #4D372A;
    opacity: 0.6;
    margin-top: 20px;
}

/* Opt-in checkbox section */
.opt-in-section {
    margin-bottom: 25px;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-left: 35px;
    gap: 10px;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    left: 0;
    top: 2px;
    height: 20px;
    width: 20px;
    background-color: #FEFAF6;
    border: 2px solid #4D372A;
    border-radius: 3px;
}

.checkbox-container:hover input ~ .checkmark {
    background-color: #e8e4df;
}

.checkbox-container input:checked ~ .checkmark {
    background-color: #4A90E2;
    border-color: #4A90E2;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label {
    color: #4D372A;
    font-size: 0.775rem;
    line-height: 1.4;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

/* Button section */
.button-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.email-button {
    width: 100%;
    background: #B85420;
    color: #FEFAF6;
    border: none;
    padding: 16px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Cartograph CF', 'Inter', system-ui, sans-serif;
}

.email-button:hover {
    background: #A04618;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(184, 84, 32, 0.5);
}

.email-button:active {
    transform: translateY(0);
}

.facebook-button {
    width: 100%;
    background: #4267B2;
    color: #FEFAF6;
    border: none;
    padding: 16px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Cartograph CF', 'Inter', system-ui, sans-serif;
}

.facebook-button:hover {
    background: #365899;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(66, 103, 178, 0.4);
}

.facebook-button:active {
    transform: translateY(0);
}

/* Guest link section */
.guest-link-section {
    text-align: right;
    margin-top: 20px;
    margin-bottom: 30px;
}

.guest-link {
    color: #4D372A;
    font-size: 0.65rem;
    text-decoration: underline;
    cursor: pointer;
    transition: opacity 0.3s ease;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

.guest-link:hover {
    opacity: 0.8;
}

/* Footer section */
.footer-section {
    text-align: center;
    padding: 20px 30px;
    border-top: 1px solid rgba(254, 250, 246, 0.2);
}

.footer-link {
    color: #4D372A;
    font-size: 0.85rem;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.3s ease;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

.footer-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Loading state */
.loading {
    position: relative;
    color: transparent;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Microsoft Customer Insights form container */
#microsoft-form-container {
    max-height: none !important;
    overflow: visible !important;
    margin-bottom: 20px;
}

/* Microsoft Customer Insights form - Override with Lazy Dog branding */
.marketingForm {
    overflow: visible !important;
    max-height: none !important;
}

.marketingForm .textFormFieldBlock {
    padding: 20px 0px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

.marketingForm .textFormFieldBlock label,
.marketingForm .textFormFieldBlock label * {
    font-family: 'Cartograph CF', 'Inter', system-ui, sans-serif !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    color: #4D372A !important;
    margin: 0 !important;
    padding: 0 !important;
}

.marketingForm .textFormFieldBlock input {
    font-family: 'Cartograph CF', 'Inter', system-ui, sans-serif !important;
    font-size: 1rem !important;
    padding: 12px 16px !important;
    background-color: #fafbfc !important;
    border: 2px solid #e1e5e9 !important;
    border-radius: 8px !important;
    color: #4D372A !important;
    transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
}

.marketingForm .textFormFieldBlock input:focus {
    outline: none !important;
    border-color: #4D372A !important;
    box-shadow: 0 0 0 3px rgba(77, 55, 42, 0.1) !important;
    background: white !important;
}

.marketingForm .textFormFieldBlock input::placeholder {
    color: #8a8886 !important;
    opacity: 0.7 !important;
}

/* Keep required asterisk styling from Microsoft */
.marketingForm .textFormFieldBlock label::after {
    color: #c33400 !important;
}

/* Error message styling */
.error-message {
    text-align: center;
    padding: 40px 20px;
    color: #4D372A;
}

.error-message h3 {
    color: #d32f2f;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.error-message p {
    color: #4D372A;
    opacity: 0.8;
}

/* Connecting animation */
.connecting-animation {
    text-align: center;
    padding: 40px 20px;
}

.wifi-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    animation: bounce 1.5s infinite;
}

.connecting-animation h3 {
    color: #4D372A;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.connecting-dots {
    margin: 20px 0;
    font-size: 2rem;
    color: #4D372A;
}

.connecting-dots span {
    animation: blink 1.4s infinite;
}

.connecting-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.connecting-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

.connecting-animation p {
    color: #4D372A;
    opacity: 0.8;
    font-size: 1rem;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0.3;
    }
}

/* Success state */
.success-message {
    text-align: center;
    padding: 40px 20px;
    color: #4D372A;
}

.success-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.success-message h3 {
    color: #4D372A;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.success-message p {
    color: #4D372A;
    opacity: 0.8;
    margin-bottom: 10px;
}

.success-note {
    font-weight: 600 !important;
    font-style: italic;
    font-size: 1.1rem !important;
    opacity: 1 !important;
}

/* Mobile responsiveness */
@media (max-width: 480px) {
    .container {
        padding: 10px;
    }

    .splash-card {
        border-radius: 12px;
    }

    .logo-section {
        padding: 30px 20px 25px;
    }

    .brand-title {
        font-size: 1.8rem;
    }

    .form-section {
        padding: 30px 20px;
    }

    .form-group input {
        padding: 14px 16px;
    }

    .connect-button {
        padding: 14px;
        font-size: 1rem;
    }
}