/* YP Contacts - Complete Styling */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Anton&family=Open+Sans:wght@400;500;600;700&display=swap');

/* Color Palette */
:root {
    --primary-red: #FF3131;
    --dark-text: #042830;
    --cream-light: #FAF6E8;
    --cream-dark: #EEEAD9;
}

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

/* Body */
body {
    font-family: 'Open Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: var(--cream-light);
    font-weight: 400;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Anton', Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* Header */
header {
    background: white;
    padding: 1rem 2rem;
    text-align: center;
    box-shadow: 6px 6px 9px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-family: 'Anton', sans-serif;
    letter-spacing: 1px;
    color: var(--dark-text);
}

/* Hero */
.hero {
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 4rem 2rem;
    background: var(--primary-red);
    background-image: url('../img/scales.png');
    background-size: cover;
    background-position: center;
    background-blend-mode: multiply;
    color: var(--cream-light);
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(4, 40, 48, 0.7);
    z-index: 1;
}

.hero > * {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--cream-light);
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.5rem;
    max-width: 800px;
    font-weight: 500;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-cta {
    display: inline-block;
    background: var(--cream-light);
    color: var(--dark-text);
    padding: 1rem 2.5rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.hero-cta:hover {
    transform: translate(2px, 2px);
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.3);
}

/* Content Sections */
.section {
    margin-bottom: 4rem;
}

.section h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-red);
}

.section p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.section ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.section li {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

/* Section Divider Image */
.section-divider {
    margin: 4rem 0;
    text-align: center;
}

.section-divider img {
    max-width: 100%;
    height: auto;
    box-shadow: 6px 6px 9px rgba(0, 0, 0, 0.2);
}

/* CTA Box */
.cta-box {
    background: var(--dark-text);
    color: var(--cream-light);
    padding: 3rem 2rem;
    text-align: center;
    margin: 4rem 0;
    box-shadow: 6px 6px 9px rgba(0, 0, 0, 0.2);
}

.cta-box h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-box p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.cta-box a {
    display: inline-block;
    background: var(--primary-red);
    color: var(--cream-light);
    padding: 1rem 2.5rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
}

.cta-box a:hover {
    transform: translate(2px, 2px);
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.2);
}

/* Form Section */
.form-section {
    background: var(--cream-dark);
    padding: 4rem 2rem;
}

.form-section h2 {
    text-align: center;
    margin-bottom: 1rem;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background: white;
    box-shadow: 6px 6px 9px rgba(0, 0, 0, 0.2);
}

.form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-text);
}

small {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.25rem;
}

input, select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--dark-text);
    font-size: 1rem;
    font-family: 'Open Sans', sans-serif;
    background: white;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--primary-red);
}

input:disabled, select:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
}

button {
    background: var(--primary-red);
    color: var(--cream-light);
    padding: 1rem 2rem;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
    font-family: 'Open Sans', sans-serif;
}

button:hover {
    transform: translate(2px, 2px);
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.2);
}

button:disabled {
    background: #999;
    cursor: not-allowed;
    transform: none;
}

/* Messages */
.message {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 2px solid;
    font-weight: 500;
}

.message.success {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.message.error {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

/* Social Proof */
.social-proof {
    text-align: center;
    padding: 1.5rem;
    background: var(--cream-dark);
    margin-bottom: 2rem;
}

.social-proof p {
    font-size: 1rem;
    color: var(--dark-text);
}

/* Directory Page */
.directory-header {
    text-align: center;
    margin-bottom: 2rem;
}

.directory-header h1 {
    font-size: 3rem;
    color: var(--primary-red);
    margin-bottom: 0.5rem;
}

.directory-filter {
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.directory-filter label {
    font-weight: 600;
}

.directory-filter select {
    flex: 1;
    max-width: 400px;
}

.region-group {
    margin-bottom: 2rem;
}

.region-title {
    color: var(--primary-red);
    font-size: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--primary-red);
}

.branch-item {
    padding: 1rem;
    background: white;
    margin-bottom: 0.5rem;
    box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.branch-constituency {
    font-weight: 600;
    font-size: 1.1rem;
    flex: 1;
    min-width: 200px;
}

.branch-email {
    flex: 1;
    min-width: 250px;
}

.branch-email a {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 500;
}

.branch-email a:hover {
    text-decoration: underline;
}

.directory-footer {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
}

.directory-footer a {
    color: var(--primary-red);
    font-weight: 600;
    text-decoration: none;
    margin: 0 1rem;
}

.directory-footer a:hover {
    text-decoration: underline;
}

.no-branches {
    text-align: center;
    padding: 3rem;
    background: white;
    box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.1);
}

.no-branches a {
    color: var(--primary-red);
    font-weight: 600;
}

/* Admin Pages */
.admin-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.stat-box {
    flex: 1;
    min-width: 150px;
    background: white;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.1);
}

.stat-box h3 {
    font-size: 2.5rem;
    color: var(--primary-red);
    margin-bottom: 0.5rem;
}

.stat-box p {
    font-size: 0.9rem;
    color: #666;
}

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

.admin-section h2 {
    color: var(--dark-text);
    margin-bottom: 1.5rem;
}

.branches-table {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.branch-card {
    background: white;
    padding: 1.5rem;
    box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--primary-red);
}

.branch-card.approved {
    background: #d4edda;
    border-left-color: #28a745;
}

.branch-info {
    margin-bottom: 1rem;
}

.branch-info h3 {
    color: var(--dark-text);
    margin-bottom: 0.5rem;
}

.branch-info p {
    margin: 0.25rem 0;
    font-size: 0.95rem;
}

.branch-actions {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-approve {
    background: #28a745;
    padding: 0.75rem 1.5rem;
    width: auto;
}

.btn-approve:hover {
    background: #218838;
}

.btn-reject {
    background: #dc3545;
    padding: 0.75rem 1.5rem;
    width: auto;
}

.btn-reject:hover {
    background: #c82333;
}

.verification-result {
    max-width: 600px;
    margin: 0 auto;
}

.btn {
    display: inline-block;
    background: var(--primary-red);
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    font-weight: 600;
    margin: 0.5rem;
    box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.2);
}

.btn:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.2);
}

/* Footer */
footer {
    background: var(--dark-text);
    color: var(--cream-light);
    text-align: center;
    padding: 2rem;
}

footer p {
    margin: 0.5rem 0;
}

footer a {
    color: var(--cream-light);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

footer a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero {
        min-height: 40vh;
        padding: 2rem 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .container {
        padding: 2rem 1rem;
    }

    .section h2 {
        font-size: 2rem;
    }

    .cta-box {
        padding: 2rem 1rem;
    }

    .cta-box h3 {
        font-size: 1.5rem;
    }

    .admin-stats {
        flex-direction: column;
    }

    .branch-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .directory-filter {
        flex-direction: column;
        align-items: stretch;
    }

    .directory-filter select {
        max-width: 100%;
    }

    .branch-actions {
        flex-direction: column;
    }

    .btn-approve, .btn-reject {
        width: 100%;
    }
}
