* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-size: 12px;
}

body {
    background-color: #fff;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    margin: 0 0 0.75rem 0;
}

.page-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100rem;
    gap: 1.25rem;
    padding: 0 1.5rem;
}

.main-content {
    display: flex;
    gap: 1.25rem;
}

.container {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 0.375rem 1rem rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 31.25rem;
    overflow: hidden;
}

header {
    width: 100%;
    display: flex;
    justify-content: center;
}

    header .logo img {
        width: 12.5rem;
        height: auto;
    }

.header {
    background-color: #00673e;
    color: white;
    padding: 1.25rem;
    text-align: center;
}

    .header h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .header p {
        font-size: 0.875rem;
        opacity: 0.9;
    }

.form-container {
    padding: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

input,
select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 0.25rem;
    font-size: 1rem;
    transition: border-color 0.3s;
}

    input:focus {
        outline: none;
        border-color: #00673e;
    }

    input[readonly] {
        background-color: #f5f5f5;
        color: #666;
    }

.input-group {
    display: flex;
    gap: 0.625rem;
}

    .input-group input {
        width: 5rem;
        text-align: center;
    }

button {
    background-color: #00673e;
    color: white;
    border: none;
    border-radius: 0.25rem;
    padding: 0.875rem;
    width: 100%;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

    button:hover {
        background-color: #008751;
    }

    button:disabled {
        background-color: #ccc;
        cursor: not-allowed;
    }

.result-container {
    padding: 1.25rem;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.05);
    display: none;
}

    .result-container h2 {
        font-size: 1.125rem;
        margin-bottom: 0.9375rem;
        color: #00673e;
    }

.info-group {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 0.375rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    transition: border-color 0.3s;
}

    .info-group:hover {
        border-color: #00af70;
    }

.info-label {
    font-size: 0.8125rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.info-value {
    font-size: 1rem;
    font-weight: 500;
}

.loading {
    display: none;
    text-align: center;
    padding: 1.25rem;
}

.spinner {
    border: 0.25rem solid rgba(0, 0, 0, 0.1);
    border-left-color: #00673e;
    border-radius: 50%;
    width: 1.875rem;
    height: 1.875rem;
    animation: spin 1s linear infinite;
    margin: 0 auto 0.625rem;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.error-message {
    background-color: #fff2f2;
    color: #d32f2f;
    padding: 0.625rem;
    border-radius: 0.25rem;
    margin-bottom: 0.9375rem;
    display: none;
}

.success-message {
    background-color: #f0f9f0;
    color: #2e7d32;
    padding: 0.625rem;
    border-radius: 0.25rem;
    margin-bottom: 0.9375rem;
    display: none;
}

/* Instructions panel styles */
.instructions-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.instructions-panel {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 0.375rem 1rem rgba(0, 0, 0, 0.15);
    flex: 1;
    min-width: 18.75rem;
    overflow: hidden;
}

.instructions-header {
    background-color: #00673e;
    color: white;
    padding: 1.25rem;
    text-align: center;
}

    .instructions-header h2 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .instructions-header p {
        font-size: 0.875rem;
        opacity: 0.9;
    }

.instructions-content {
    padding: 1.25rem;
}

.step {
    margin-bottom: 1.25rem;
    display: flex;
}

.step-number {
    background-color: #00673e;
    color: white;
    width: 1.5625rem;
    height: 1.5625rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: bold;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 1rem;
    margin-bottom: 0.375rem;
    color: #333;
}

.step-content p {
    font-size: 0.875rem;
    color: #555;
    line-height: 1.5;
}

.note {
    background-color: #f0f7ff;
    border-left: 0.25rem solid #00673e;
    padding: 0.625rem;
    margin-top: 1.25rem;
    font-size: 0.875rem;
}

.checkbox-container {
    display: flex;
    align-items: center;
    margin-bottom: 1.25rem;
}

    .checkbox-container input[type="checkbox"] {
        width: auto;
        margin-right: 0.625rem;
    }

    .checkbox-container label {
        margin-bottom: 0;
        font-weight: normal;
        display: inline;
    }

.auth-field {
    display: none;
}

    .auth-field.visible {
        display: block;
    }

.page-title {
    text-align: center;
    margin-bottom: 0.625rem;
    color: #00673e;
    font-size: 1.625rem;
}

    .page-title h1 {
    }

/* New styles for result actions */
.result-actions {
    margin-bottom: 0.9375rem;
}

.email-group {
    display: flex;
    gap: 0.625rem;
    margin-bottom: 0.9375rem;
    align-items: center;
}

    .email-group input {
        flex: 1;
    }

    .email-group button {
        white-space: nowrap;
        width: auto;
        padding: 0.75rem 0.9375rem;
    }

.action-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
}

.search-again-btn {
    background-color: #00673e;
}

    .search-again-btn:hover {
        background-color: #008751;
    }

.results-panel {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 0.375rem 1rem rgba(0, 0, 0, 0.15);
    overflow: hidden;
    display: none;
    width: 100%;
}

.curvybaby {
    width: 100%;
    background-position: center;
    background-color: white;
    height: 1.25rem;
    background-size: cover;
    background-repeat: no-repeat;
    border-bottom-left-radius: 50%;
    border-bottom-right-radius: 50%;
}

@media (min-width: 75rem) {
    body {
        max-height: 100vh;
        height: 100vh;
        overflow-y: hidden;
    }
}

@media (max-width: 75rem) {
    .main-content {
        flex-direction: column;
        align-items: center;
    }

    .instructions-container {
        flex-direction: column;
    }

    .instructions-panel {
        width: 100%;
        max-width: 31.25rem;
    }
}

@media (max-width: 40rem) {
    .page-container {
        padding: 0 1rem;
    }
}
