/* BakedBySarvani Review Form - Beautiful Branded Styling */

:root {
    /* Brand Colors */
    --cream-bg: #FAF5EE;
    --chocolate-brown: #372319;
    --gold-accent: #B48C5A;
    --gold-light: #D4B896;
    --soft-white: #FFFDF9;
    --text-muted: #8B7355;

    /* Fonts */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Lato', 'Avenir', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--cream-bg);
    color: var(--chocolate-brown);
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    text-align: center;
    padding: 30px 0 20px;
}

.logo-text {
    font-family: var(--font-body);
    font-size: 14px;
    letter-spacing: 4px;
    color: var(--gold-accent);
    font-weight: 400;
}

.tagline {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
    font-style: italic;
}

/* Form Container */
.form-container {
    flex: 1;
    background: var(--soft-white);
    border-radius: 20px;
    padding: 35px 25px;
    box-shadow: 0 4px 20px rgba(55, 35, 25, 0.08);
}

.form-container h1 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 10px;
    color: var(--chocolate-brown);
}

.intro {
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 30px;
}

/* Form Groups */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 400;
    color: var(--chocolate-brown);
    margin-bottom: 8px;
}

/* Input Fields */
input[type="text"],
textarea,
select {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-body);
    font-size: 16px;
    border: 1px solid var(--gold-light);
    border-radius: 10px;
    background: var(--soft-white);
    color: var(--chocolate-brown);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="text"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--gold-accent);
    box-shadow: 0 0 0 3px rgba(180, 140, 90, 0.15);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23B48C5A' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

/* Star Rating */
.star-rating {
    display: flex;
    gap: 8px;
    justify-content: center;
    padding: 10px 0;
}

.star {
    font-size: 36px;
    color: var(--gold-light);
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}

.star:hover,
.star.active {
    color: var(--gold-accent);
    transform: scale(1.1);
}

.star.active {
    text-shadow: 0 0 10px rgba(180, 140, 90, 0.4);
}

/* File Upload */
.file-upload {
    position: relative;
    border: 2px dashed var(--gold-light);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: border-color 0.3s ease, background 0.3s ease;
    cursor: pointer;
}

.file-upload:hover {
    border-color: var(--gold-accent);
    background: rgba(180, 140, 90, 0.05);
}

.file-upload input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 14px;
}

.upload-icon {
    font-size: 28px;
}

.upload-preview {
    display: none;
}

.upload-preview.active {
    display: block;
}

.upload-preview img {
    max-width: 100%;
    max-height: 150px;
    border-radius: 8px;
    margin-top: 10px;
}

.file-upload.has-file .upload-placeholder {
    display: none;
}

/* Checkbox */
.checkbox-group {
    margin-top: 20px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border: 2px solid var(--gold-light);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: var(--gold-accent);
    border-color: var(--gold-accent);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: "✓";
    color: white;
    font-size: 14px;
    font-weight: bold;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 16px 24px;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 1px;
    color: var(--soft-white);
    background: var(--gold-accent);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    margin-top: 10px;
}

.submit-btn:hover {
    background: var(--chocolate-brown);
    box-shadow: 0 4px 15px rgba(55, 35, 25, 0.2);
}

.submit-btn:active {
    transform: scale(0.98);
}

.submit-btn .btn-loading {
    display: none;
}

.submit-btn.loading .btn-text {
    display: none;
}

.submit-btn.loading .btn-loading {
    display: inline;
}

.submit-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Thank You Screen */
.thank-you {
    display: none;
    flex: 1;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
}

.thank-you.active {
    display: flex;
}

.thank-you-content h2 {
    font-family: var(--font-display);
    font-size: 32px;
    margin: 20px 0 10px;
    color: var(--chocolate-brown);
}

.thank-you-content p {
    color: var(--text-muted);
    margin-bottom: 8px;
}

.follow-us {
    margin-top: 30px !important;
    font-size: 14px;
}

.instagram-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 30px;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 400;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.instagram-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(220, 39, 67, 0.3);
}

/* Checkmark Animation */
.checkmark-circle {
    width: 80px;
    height: 80px;
    margin: 0 auto;
}

.checkmark-svg {
    width: 100%;
    height: 100%;
}

.checkmark-circle-bg {
    stroke: var(--gold-accent);
    stroke-width: 2;
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
    stroke: var(--gold-accent);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.4s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px 0 20px;
}

.footer p {
    font-size: 12px;
    letter-spacing: 3px;
    color: var(--gold-accent);
}

.footer-sub {
    color: var(--text-muted) !important;
    letter-spacing: 1px !important;
    margin-top: 5px;
}

/* Hide form when thank you is shown */
.form-container.hidden {
    display: none;
}

/* Responsive */
@media (max-width: 480px) {
    .container {
        padding: 15px;
    }

    .form-container {
        padding: 25px 20px;
    }

    .form-container h1 {
        font-size: 24px;
    }

    .star {
        font-size: 32px;
    }
}

/* Smooth transitions */
.form-container,
.thank-you {
    transition: opacity 0.3s ease;
}

.form-container.fade-out {
    opacity: 0;
}

.thank-you.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
