/* 
 * Dr. Simai Forms - Warm & Friendly Theme
 * A human-centered design for medical forms
 */

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

:root {
    /* Warm, friendly color palette */
    --primary: #2D9596;        /* Calming teal */
    --primary-dark: #1E6F70;
    --primary-light: #9AD0C2;
    --accent: #FF8551;         /* Warm coral accent */
    --accent-light: #FFB996;
    --bg-warm: #FFF8F3;        /* Warm cream background */
    --bg-card: #FFFFFF;
    --text-dark: #2C3E50;
    --text-medium: #5D6D7E;
    --text-light: #95A5A6;
    --success: #27AE60;
    --warning: #F39C12;
    --error: #E74C3C;
}

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

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-warm);
    min-height: 100vh;
    padding: 20px;
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--bg-card);
    border-radius: 24px;
    box-shadow: 0 4px 24px rgba(45, 149, 150, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 50px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Friendly decorative circles */
header::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

header::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 10%;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

header h1 {
    font-size: 2.2em;
    font-weight: 800;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.subtitle {
    font-size: 1.1em;
    opacity: 0.9;
    font-weight: 600;
}

main {
    padding: 50px 40px;
}

footer {
    background: linear-gradient(to top, #f5f5f5, var(--bg-card));
    padding: 25px;
    text-align: center;
    color: var(--text-medium);
    font-size: 0.9em;
    border-top: 1px solid #eee;
}

footer a {
    color: var(--primary);
    font-weight: 600;
}

/* Payment Section */
.payment-section {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.payment-section h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: var(--text-dark);
    font-weight: 800;
}

.price {
    font-size: 3em;
    font-weight: 800;
    color: var(--primary);
    margin: 20px 0;
}

.description {
    font-size: 1.15em;
    color: var(--text-medium);
    margin-bottom: 30px;
}

.features {
    text-align: left;
    background: linear-gradient(135deg, #F0FFFF 0%, #E8F8F5 100%);
    padding: 28px;
    border-radius: 16px;
    margin: 25px 0;
    border: 2px solid var(--primary-light);
}

.features h3 {
    margin-bottom: 15px;
    color: var(--text-dark);
    font-weight: 700;
}

.features ul {
    list-style: none;
}

.features li {
    padding: 10px 0;
    font-size: 1.05em;
    color: var(--text-medium);
    font-weight: 600;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 36px;
    font-size: 1.05em;
    font-weight: 700;
    text-decoration: none;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(45, 149, 150, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(45, 149, 150, 0.4);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: var(--bg-warm);
    color: var(--text-dark);
    border: 2px solid #ddd;
}

.btn-secondary:hover {
    background: #f0f0f0;
    border-color: #ccc;
}

/* Form Selection */
.form-selection {
    max-width: 1000px;
    margin: 0 auto;
}

.form-selection h2 {
    text-align: center;
    margin-bottom: 15px;
    color: var(--text-dark);
    font-weight: 800;
    font-size: 1.8em;
}

.form-selection > p {
    text-align: center;
    color: var(--text-medium);
    margin-bottom: 10px;
}

.forms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.form-card {
    background: var(--bg-card);
    padding: 28px;
    border-radius: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid #f0f0f0;
}

.form-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(45, 149, 150, 0.12);
    border-color: var(--primary-light);
}

.form-card h3 {
    margin-bottom: 12px;
    color: var(--text-dark);
    font-size: 1.35em;
    font-weight: 700;
}

/* Fill Form */
.fill-form-section {
    max-width: 650px;
    margin: 0 auto;
}

.fill-form-section h2 {
    margin-bottom: 20px;
    color: var(--text-dark);
    font-weight: 800;
    font-size: 1.8em;
}

.child-info-form {
    background: linear-gradient(135deg, #FAFAFA 0%, #F5F5F5 100%);
    padding: 35px;
    border-radius: 20px;
    border: 2px solid #eee;
}

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

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    color: var(--text-dark);
    font-size: 1.05em;
}

.form-group input {
    width: 100%;
    padding: 14px 18px;
    font-size: 1em;
    font-family: inherit;
    border: 2px solid #ddd;
    border-radius: 12px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: white;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(45, 149, 150, 0.1);
}

.form-group small {
    display: block;
    margin-top: 8px;
    color: var(--text-light);
    font-size: 0.9em;
}

/* Messages */
.error-message {
    background: linear-gradient(135deg, #FDEDEC 0%, #FADBD8 100%);
    color: var(--error);
    padding: 18px 20px;
    border-radius: 12px;
    margin: 20px 0;
    border: 2px solid #F5B7B1;
    font-weight: 600;
}

.success-message {
    background: linear-gradient(135deg, #E8F8F5 0%, #D5F5E3 100%);
    color: var(--success);
    padding: 18px 20px;
    border-radius: 12px;
    margin: 20px 0;
    border: 2px solid #A9DFBF;
    font-weight: 600;
}

.warning-message {
    background: linear-gradient(135deg, #FEF9E7 0%, #FCF3CF 100%);
    color: #B7950B;
    padding: 18px 20px;
    border-radius: 12px;
    margin: 20px 0;
    border: 2px solid #F9E79F;
    font-weight: 600;
}

/* Cancel Section */
.cancel-section {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
    padding: 40px;
}

.cancel-section h2 {
    color: var(--error);
    margin-bottom: 20px;
    font-weight: 800;
}

.cancel-section p {
    font-size: 1.1em;
    color: var(--text-medium);
    margin-bottom: 30px;
}

/* How It Works Section */
.how-it-works {
    background: linear-gradient(135deg, #E8F8F5 0%, #D5F5E3 100%) !important;
    border: 2px solid var(--primary-light) !important;
}

/* Responsive */
@media (max-width: 768px) {
    header {
        padding: 35px 25px;
    }
    
    header h1 {
        font-size: 1.7em;
    }
    
    .price {
        font-size: 2.5em;
    }
    
    .forms-grid {
        grid-template-columns: 1fr;
    }
    
    main {
        padding: 30px 20px;
    }
    
    .btn {
        padding: 14px 28px;
    }
    
    .child-info-form {
        padding: 25px;
    }
}
