
/* ========================================
   B. BECKFORD LAW FIRM - REVIEW WEBSITE
   Main Stylesheet
======================================== */

/* 1. Global Settings */

:root {
    --navy: #14263f;
    --navy-light: #203b5c;
    --gold: #c5a15b;
    --gold-light: #dfc58e;
    --white: #ffffff;
    --background: #f5f6f8;
    --text: #283548;
    --muted: #778394;
    --border: #e2e6eb;
    --success: #26734d;
    --danger: #b42318;
}

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

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 2. Header */

.site-header {
    background: var(--navy);
    border-bottom: 3px solid var(--gold);
    padding: 20px 24px;
}

.header-container {
    max-width: 1100px;
    margin: 0 auto;
}

.brand {
    display: inline-flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--white);
}

.brand-name {
    font-size: 21px;
    font-weight: 700;
    letter-spacing: 2px;
}

.brand-subtitle {
    color: var(--gold-light);
    font-size: 10px;
    letter-spacing: 4px;
}

/* 3. Main Layout */

.main-container {
    width: 100%;
    max-width: 760px;
    margin: 55px auto;
    padding: 0 20px;
    flex: 1;
}

.review-card {
    background: var(--white);
    border-radius: 12px;
    padding: 45px;
    box-shadow: 0 8px 30px rgba(20, 38, 63, 0.07);
}

/* 4. Introduction */

.intro {
    text-align: center;
}

.eyebrow {
    color: var(--gold);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}

.intro h1 {
    color: var(--navy);
    font-size: 34px;
    margin: 12px 0;
    line-height: 1.25;
}

.intro p {
    color: var(--muted);
    font-size: 15px;
    max-width: 520px;
    margin: 0 auto;
}

.form-divider {
    height: 1px;
    background: var(--border);
    margin: 32px 0;
}

/* 5. Form Elements */

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

.form-group label,
.consent-section h2 {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 9px;
}

.form-group label span,
.consent-section h2 span {
    color: var(--danger);
}

input[type="text"],
textarea {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: var(--white);
    font-family: inherit;
    font-size: 14px;
    color: var(--text);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input[type="text"]:focus,
textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(197, 161, 91, 0.13);
}

textarea {
    resize: vertical;
    min-height: 130px;
}

input::placeholder,
textarea::placeholder {
    color: #a2aab5;
}

.form-group small,
.consent-section small {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-top: 7px;
}

/* 6. Star Rating */

.star-rating {
    display: flex;
    gap: 7px;
    margin: 5px 0;
}

.star {
    background: none;
    border: none;
    color: #d5d9df;
    font-size: 34px;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
    line-height: 1;
}

.star:hover {
    transform: scale(1.12);
}

.star.active {
    color: var(--gold);
}

.star:focus-visible {
    outline: 2px solid var(--navy);
    outline-offset: 3px;
    border-radius: 3px;
}

#ratingText {
    color: var(--muted);
    font-size: 12px;
}

/* 7. Character Counter */

.character-count {
    text-align: right;
    color: var(--muted);
    font-size: 11px;
    margin-top: 5px;
}

/* 8. Marketing Consent */

.consent-section {
    background: #faf9f6;
    border: 1px solid #eee8da;
    border-radius: 8px;
    padding: 22px;
    margin: 10px 0 26px;
}

.consent-section h2 {
    font-size: 15px;
    margin-bottom: 8px;
}

.consent-section p {
    color: var(--text);
    font-size: 13px;
    margin-bottom: 16px;
}

.consent-option {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--text);
    cursor: pointer;
}

.consent-option input {
    accent-color: var(--navy);
    width: 17px;
    height: 17px;
    cursor: pointer;
}

/* 9. Submit Button */

#submitButton {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 7px;
    background: var(--navy);
    color: var(--white);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

#submitButton:hover:not(:disabled) {
    background: var(--navy-light);
    transform: translateY(-1px);
}

#submitButton:disabled {
    background: #aab2bd;
    cursor: not-allowed;
    opacity: 0.8;
}

.privacy-note {
    text-align: center;
    color: var(--muted);
    font-size: 11px;
    margin-top: 15px;
}

/* 10. Confirmation and Error Messages */

.success-message,
.error-message {
    padding: 20px;
    margin-top: 20px;
    border-radius: 8px;
    text-align: center;
}

.success-message {
    background: #edf7f0;
    color: var(--success);
}

.error-message {
    background: #fff1f0;
    color: var(--danger);
}

.success-message h2 {
    margin-bottom: 5px;
}

/* 11. Footer */

.site-footer {
    background: var(--navy);
    color: #d5dce5;
    text-align: center;
    padding: 20px;
    font-size: 12px;
    margin-top: auto;
}

/* 12. Responsive Design */

@media (max-width: 600px) {

    .site-header {
        padding: 16px 20px;
    }

    .brand-name {
        font-size: 18px;
    }

    .main-container {
        margin: 25px auto;
        padding: 0 14px;
    }

    .review-card {
        padding: 25px 20px;
        border-radius: 9px;
    }

    .intro h1 {
        font-size: 27px;
    }

    .intro p {
        font-size: 14px;
    }

    .form-divider {
        margin: 24px 0;
    }

    .star {
        font-size: 31px;
    }

    .consent-section {
        padding: 17px;
    }
}
