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

:root {
    --primary: #0CAE5B;
    --primary-light: #21D075;
    --primary-dark: #088C48;
    --secondary: #2b2b2b;
    --text-main: #333333;
    --text-muted: #666666;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border: #e9ecef;
    --danger: #dc3545;
    --success: #0CAE5B;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(12, 174, 91, 0.04) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(12, 174, 91, 0.08) 0%, transparent 40%),
        linear-gradient(135deg, rgba(255,255,255,0.8) 0%, rgba(248,249,250,0.9) 100%);
    background-attachment: fixed;
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 3rem 1rem;
    line-height: 1.6;
}

.glass-container {
    background: var(--bg-white);
    border-radius: 24px;
    padding: 3rem;
    width: 100%;
    max-width: 850px;
    box-shadow: var(--shadow);
    animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.header h1 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 3rem;
    margin-bottom: 0.75rem;
    color: var(--secondary);
    letter-spacing: -0.04em;
}

.header h1 span {
    color: var(--primary);
}

.header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: 400;
}

.brand-logo {
    max-width: 280px;
    height: auto;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.05));
    transition: transform 0.3s ease;
}

.brand-logo:hover {
    transform: scale(1.02);
}

.input-group.loading-zip input {
    background-image: linear-gradient(90deg, #f1f3f5 25%, #e9ecef 50%, #f1f3f5 75%);
    background-size: 200% 100%;
    animation: loading-pulse 1.5s infinite;
}

@keyframes loading-pulse {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.form-section {
    margin-bottom: 3rem;
}

.form-section h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.form-section h2 svg {
    color: var(--primary);
    stroke-width: 2.5px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .form-grid {
        grid-template-columns: 1fr 1fr;
    }
    .full-width {
        grid-column: 1 / -1;
    }
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--secondary);
    margin-left: 0.25rem;
}

input[type="text"],
input[type="email"],
input[type="number"],
input[type="tel"],
select,
textarea {
    width: 100%;
    background: #ffffff;
    border: 2px solid #f1f3f5;
    color: var(--text-main);
    padding: 0.9rem 1.25rem;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-light);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(12, 174, 91, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.25rem;
}

.checkbox-group input[type="checkbox"] {
    width: 1.35rem;
    height: 1.35rem;
    accent-color: var(--primary);
    cursor: pointer;
}

.checkbox-group label {
    cursor: pointer;
    font-weight: 500;
    color: var(--text-muted);
}

.file-upload-wrapper {
    position: relative;
    border: 2px dashed #dee2e6;
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fbfcfd;
    color: var(--text-muted);
}

.file-upload-wrapper:hover {
    border-color: var(--primary);
    background: #f1f9f5;
    color: var(--primary-dark);
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 1.1rem 2.5rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    width: 100%;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 10px 20px rgba(12, 174, 91, 0.2);
    margin-top: 1rem;
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 25px rgba(12, 174, 91, 0.3);
}

.btn-primary:active {
    transform: translateY(-1px);
}

/* Spinner for loading state */
.spinner {
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top: 3px solid white;
    width: 24px;
    height: 24px;
    animation: spin 0.8s linear infinite;
    display: none;
}

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

.is-loading .spinner {
    display: inline-block;
}

.is-loading .btn-text {
    display: none;
}

.hidden {
    display: none;
}

#successMessage {
    background: white;
}

#protocolDisplay {
    background: #f1f9f5;
    color: var(--primary-dark);
    padding: 1.5rem;
    border-radius: 16px;
    font-size: 1.5rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    letter-spacing: 3px;
    margin: 1.5rem 0;
    border: 1px solid rgba(12, 174, 91, 0.1);
}
.working-days-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 0.75rem;
}

.working-days-grid label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 500;
    margin: 0;
}

.section-helper {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.partner-card {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    background: #fcfdfc;
}

.partner-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.partner-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    color: var(--secondary);
}

.btn-secondary {
    border: 1px solid var(--primary);
    background: #fff;
    color: var(--primary-dark);
    border-radius: 999px;
    padding: 0.65rem 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: #f1f9f5;
}

.partner-remove {
    border: none;
    background: transparent;
    color: var(--danger);
    font-weight: 700;
    cursor: pointer;
}
