/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;600;700&family=Crimson+Text:wght@400;600;700&display=swap');

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

/* Body & Background */
body {
    font-family: 'Crimson Text', serif;
    background: linear-gradient(135deg, #fffbeb 0%, #fed7aa 50%, #fecaca 100%);
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23000000' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v6h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

/* Container */
.container {
    max-width: 1024px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
    position: relative;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 4rem;
}

.book-icon {
    width: 80px;
    height: 80px;
    stroke: #92400e;
    stroke-width: 1.5;
    margin-bottom: 0.5rem;
    display: inline-block;
}

h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.subtitle {
    font-size: 1.25rem;
    color: #4b5563;
}

/* Card */
.card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(120, 53, 15, 0.1);
    border: 1px solid #fef3c7;
    overflow: hidden;
}

/* Tabs */
.tabs {
    display: flex;
    background: linear-gradient(to right, #fffbeb, #fed7aa);
    border-bottom: 1px solid #fef3c7;
}

.tab {
    flex: 1;
    padding: 1.5rem 2rem;
    background: none;
    border: none;
    font-family: 'Crimson Text', serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.tab:hover {
    color: #92400e;
    background: rgba(255, 255, 255, 0.4);
}

.tab.active {
    color: #78350f;
    background: rgba(255, 255, 255, 0.8);
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, #b45309, #c2410c);
    animation: expand 0.3s ease-out;
}

.tab-icon {
    width: 20px;
    height: 20px;
}

/* Content */
.content {
    padding: 3rem;
    background: rgba(255, 255, 255, 0.5);
}

.tab-panel {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.tab-panel.active {
    display: block;
}

h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.75rem;
}

.intro {
    font-size: 1.125rem;
    color: #4b5563;
    margin-bottom: 2rem;
}

/* Form */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

input, textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #fde68a;
    border-radius: 0.5rem;
    font-family: 'Crimson Text', serif;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    transition: all 0.3s;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #d97706;
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.1);
}

textarea {
    resize: none;
    min-height: 150px;
}

.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    animation: fadeIn 0.3s ease-out;
}

.alert-success {
    background: #d1fae5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.alert-error {
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

button[type="submit"] {
    width: 100%;
    padding: 1rem 1.5rem;
    background: linear-gradient(to right, #b45309, #c2410c);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-family: 'Crimson Text', serif;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 10px 15px -3px rgba(180, 83, 9, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

button[type="submit"]:hover:not(:disabled) {
    background: linear-gradient(to right, #92400e, #9a3412);
    box-shadow: 0 20px 25px -5px rgba(180, 83, 9, 0.3);
    transform: translateY(-1px);
}

button[type="submit"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Privacy Policy */
.privacy-content {
    color: #374151;
    font-size: 1.05rem;
    line-height: 1.8;
}

.privacy-content h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin: 2rem 0 0.75rem;
}

.privacy-content h3:first-of-type {
    margin-top: 1.5rem;
}

.privacy-content p {
    margin-bottom: 1rem;
}

.privacy-content .date {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.privacy-content .indent {
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 3rem;
    color: #4b5563;
}

/* Icons */
.icon {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes expand {
    from { 
        width: 0;
        opacity: 0;
    }
    to { 
        width: 100%;
        opacity: 1;
    }
}

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

.animate-slide-up {
    animation: slideUp 0.6s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 2rem 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .content {
        padding: 2rem 1.5rem;
    }

    .tab {
        padding: 1rem;
        font-size: 1rem;
    }

    .tab span:not(.tab-icon) {
        display: none;
    }
}