/*
Theme Name: Royal Streams International
Theme URI: https://royalstream.edu.gh
Author: Royal Streams International School
Author URI: https://royalstream.edu.gh
Description: A professional WordPress theme for Royal Streams International School featuring responsive design, custom post types for news and events, and a clean educational aesthetic.
Version: 1.2.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: royal-stream
Tags: education, school, responsive, custom-menu, featured-images, theme-options

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.
*/

/* ===================================
   CSS Reset & Base Styles
   =================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6e2b7e;
    --secondary-color: #e0b23c;
    --accent-color: #8f1837;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-white);
}

/* ===================================
   Typography
   =================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

/* ===================================
   Layout & Container
   =================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    padding: 4rem 0;
}

.section-alt {
    background-color: var(--bg-light);
}

/* ===================================
   Header & Navigation
   =================================== */

.site-header {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-branding {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.site-logo {
    display: flex;
    align-items: center;
}

.site-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.site-logo img {
    height: 60px;
    width: auto;
    margin-right: 1rem;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.site-description {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0;
}

.main-navigation {
    display: flex;
    align-items: center;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
}

.main-navigation a {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.main-navigation a:hover::after,
.main-navigation .current-menu-item a::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* ===================================
   Hero Section
   =================================== */

.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #a24fb0 100%);
    color: white;
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('assets/images/hero-pattern.png');
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===================================
   Buttons
   =================================== */

.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 0.375rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: #3b1f45;
    border-color: var(--secondary-color);
}

.btn-primary:hover {
    background-color: #b98a1f;
    border-color: #b98a1f;
    color: #3b1f45;
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border-color: white;
}

.btn-secondary:hover {
    background-color: white;
    color: var(--primary-color);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

/* ===================================
   Cards & Content Blocks
   =================================== */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background-color: var(--bg-white);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card-image {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center 22%;
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.card-text {
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* ===================================
   Features Section
   =================================== */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-item {
    text-align: center;
    padding: 2rem;
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background-color: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-color);
}

.feature-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

/* ===================================
   News & Events
   =================================== */

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.news-item {
    background-color: var(--bg-white);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.news-item:hover {
    box-shadow: var(--shadow-md);
}

.news-image {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center 22%;
}

.news-content {
    padding: 1.5rem;
}

.news-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.news-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.news-excerpt {
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* ===================================
   Sidebar
   =================================== */

.sidebar {
    padding: 2rem;
    background-color: var(--bg-light);
    border-radius: 0.5rem;
}

.widget {
    margin-bottom: 2rem;
}

.widget-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--secondary-color);
}

.widget ul {
    list-style: none;
}

.widget li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.widget li:last-child {
    border-bottom: none;
}

/* ===================================
   Footer
   =================================== */

.site-footer {
    background-color: var(--primary-color);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-widget h3 {
    color: white;
    margin-bottom: 1rem;
}

.footer-widget ul {
    list-style: none;
}

.footer-widget li {
    margin-bottom: 0.5rem;
}

.footer-widget a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-widget a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 2rem;
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.875rem;
}

.footer-navigation .footer-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-menu a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: var(--transition);
}

.footer-menu a:hover {
    color: #fff;
    text-decoration: underline;
}

@media (max-width: 700px) {
    .footer-bottom {
        justify-content: center;
    }
}

/* ===================================
   Page Header
   =================================== */

.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #a24fb0 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.page-header h1 {
    color: white;
    margin-bottom: 0.5rem;
}

.breadcrumbs {
    font-size: 0.875rem;
    opacity: 0.9;
}

.breadcrumbs a {
    color: white;
}

/* Crest badge on the purple page banners */
.page-header,
.page-hero {
    position: relative;
}

.page-header::after,
.page-hero::after {
    content: "";
    position: absolute;
    top: 50%;
    right: max(1.5rem, calc((100% - 1200px) / 2 + 1rem));
    width: 136px;
    height: 136px;
    border-radius: 50%;
    background: #fff url("assets/images/brand/logo-mark.png") center / 84% no-repeat;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
    transform: translateY(-50%);
    pointer-events: none;
}

@media (max-width: 1100px) {
    .page-header::after,
    .page-hero::after {
        right: 1.25rem;
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 950px) {
    .page-header::after,
    .page-hero::after {
        display: none;
    }
}

/* ===================================
   Content Area
   =================================== */

.content-area {
    padding: 4rem 0;
}

/* News under-construction notice */
.news-construction {
    max-width: 640px;
    margin: 0 auto;
    padding: 3rem 2rem;
    text-align: center;
    background-color: var(--bg-white);
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
}

.news-construction-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    margin-bottom: 1.5rem;
    border-radius: 50%;
    background-color: rgba(110, 43, 126, 0.1);
    color: var(--primary-color);
    font-size: 2rem;
}

.news-construction h2 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.news-construction p {
    max-width: 34rem;
    margin: 0 auto 1.75rem;
    color: var(--text-light);
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
}

.entry-content {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-sm);
}

.entry-content img {
    max-width: 100%;
    height: auto;
}

.entry-content table {
    width: 100%;
    border-collapse: collapse;
}

/* Keep long tables and floated images from widening the content column */
.content-wrapper,
.main-content > * {
    min-width: 0;
}

/* ===================================
   Forms
   =================================== */

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(110, 43, 126, 0.1);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* ===================================
   Gallery
   =================================== */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.gallery-item {
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

/* ===================================
   Responsive Design
   =================================== */

@media (max-width: 992px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--bg-white);
        box-shadow: var(--shadow-lg);
        transition: var(--transition);
        padding: 5rem 2rem 2rem;
        align-items: flex-start;
        overflow-y: auto;
    }
    
    .main-navigation.active {
        right: 0;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 1rem;
    }
    
    .site-branding {
        flex-direction: row;
        align-items: center;
        text-align: left;
        padding: 0.75rem 0;
    }

    .site-logo {
        min-width: 0;
    }

    .site-title {
        font-size: 1.25rem;
        line-height: 1.2;
    }

    .mobile-menu-toggle {
        flex-shrink: 0;
        position: relative;
        z-index: 1002;
        padding: 0.25rem 0.25rem 0.25rem 0.75rem;
    }
    
    .hero {
        padding: 3rem 0;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .card-grid,
    .features-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }

    .entry-content {
        padding: 1.25rem;
    }

    .entry-content table {
        display: block;
        overflow-x: auto;
        font-size: 0.8rem;
    }

    .entry-content table th,
    .entry-content table td {
        padding: 0.4rem;
        vertical-align: top;
    }

    .entry-content img.alignright,
    .entry-content img.alignleft {
        float: none;
        margin: 0 0 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }
    
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.25rem; }
    
    .btn {
        padding: 0.5rem 1.5rem;
        font-size: 0.875rem;
    }
}

/* ===================================
   Utility Classes
   =================================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.hidden { display: none; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ===================================
   School Tour Page
   =================================== */

.page-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #8a3c9a 100%);
    color: #fff;
    padding: 4.5rem 0;
    text-align: center;
}

.page-hero h1 {
    color: #fff;
    margin-bottom: 1rem;
}

.page-hero p {
    max-width: 720px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
}

.tour-intro {
    max-width: 800px;
    margin: 0 auto;
}

.tour-intro > * + * {
    margin-top: 1rem;
}

#picture-gallery .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.gallery-item {
    margin: 0;
    background: #fff;
}

.gallery-link {
    display: block;
    position: relative;
    cursor: zoom-in;
}

.gallery-link img {
    transition: transform 0.35s ease;
}

.gallery-link:hover img,
.gallery-link:focus-visible img {
    transform: scale(1.06);
}

.gallery-link::after {
    content: "\f00e";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    background: rgba(110, 43, 126, 0.45);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.gallery-link:hover::after,
.gallery-link:focus-visible::after {
    opacity: 1;
}

body.rsi-lightbox-open {
    overflow: hidden;
}

.rsi-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(10, 15, 35, 0.92);
    padding: 2rem;
}

.rsi-lightbox.is-open {
    display: flex;
}

.rsi-lightbox-figure {
    margin: 0;
    max-width: min(1100px, 90vw);
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.rsi-lightbox-figure img {
    max-width: 100%;
    max-height: 78vh;
    width: auto;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.rsi-lightbox-figure figcaption {
    color: #fff;
    font-size: 1rem;
    text-align: center;
}

.rsi-lightbox-close,
.rsi-lightbox-nav {
    position: absolute;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.rsi-lightbox-close:hover,
.rsi-lightbox-nav:hover,
.rsi-lightbox-close:focus-visible,
.rsi-lightbox-nav:focus-visible {
    background: rgba(255, 255, 255, 0.28);
}

.rsi-lightbox-close {
    top: 1.5rem;
    right: 1.5rem;
}

.rsi-lightbox-prev {
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
}

.rsi-lightbox-next {
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
}

.rsi-lightbox-counter {
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
}

/* School Tour map */
.tour-map {
    max-width: 1000px;
    margin: 0 auto;
}

/* School Tour video */
.tour-video {
    max-width: 420px;
    margin: 0 auto;
}

.tour-video-frame {
    position: relative;
    aspect-ratio: 9 / 16;
    border-radius: 0.75rem;
    overflow: hidden;
    background: #0f172a;
    box-shadow: var(--shadow-md);
}

.tour-video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 768px) {
    .page-hero {
        padding: 3rem 0;
    }

    .rsi-lightbox {
        padding: 1rem;
    }

    .rsi-lightbox-close {
        top: 0.75rem;
        right: 0.75rem;
    }

    .rsi-lightbox-prev {
        left: 0.5rem;
    }

    .rsi-lightbox-next {
        right: 0.5rem;
    }

    .rsi-lightbox-nav {
        width: 2.5rem;
        height: 2.5rem;
    }
}

/* Single event details panel */
.event-details {
    background: #f6edf8;
    border-left: 4px solid #e0b23c;
    border-radius: 4px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.75rem;
}

.event-details p {
    margin: 0.3rem 0;
    color: #1e293b;
}

.event-details i {
    color: #6e2b7e;
    width: 1.2rem;
}

/* Contact page */
.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 2rem;
    margin-top: 2rem;
    align-items: stretch;
}

.contact-details {
    display: grid;
    gap: 1rem;
    align-content: start;
}

.contact-details .card-title i {
    color: var(--secondary-color);
    margin-right: 0.4rem;
}

.contact-details .card-text {
    margin-bottom: 0.4rem;
}

.contact-details a {
    color: var(--primary-color);
    font-weight: 600;
}

.contact-map {
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    min-height: 460px;
    background: #e5e7eb;
}

.contact-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 460px;
    border: 0;
}

.home-contact-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 2rem;
    margin-top: 1rem;
    font-weight: 600;
}

.home-contact-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
}

.home-contact-links a:hover {
    color: var(--accent-color);
}

@media (max-width: 900px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .contact-map,
    .contact-map iframe {
        min-height: 360px;
    }
}

/* Contact form (Contact Form 7) */
.contact-form-wrap {
    max-width: 760px;
    margin: 3rem auto 0;
}

.contact-form .wpcf7-form p {
    margin-bottom: 1.25rem;
}

.contact-form label {
    display: block;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.35rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form input[type="url"],
.contact-form input[type="date"],
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    background: #fff;
    font-family: inherit;
    font-size: 1rem;
    color: #1e293b;
    transition: var(--transition);
}

.contact-form input[type="file"] {
    display: block;
    width: 100%;
    padding: 0.5rem 0;
    font-family: inherit;
    font-size: 0.95rem;
    color: #1e293b;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(110, 43, 126, 0.15);
}

.contact-form textarea {
    min-height: 170px;
    resize: vertical;
}

.wpcf7-form-control-wrap {
    display: block;
}

.contact-form .wpcf7-submit {
    display: inline-block;
    padding: 0.75rem 2rem;
    border: 2px solid var(--secondary-color);
    border-radius: 0.375rem;
    background-color: var(--secondary-color);
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.contact-form .wpcf7-submit:hover {
    background-color: #b98a1f;
    border-color: #b98a1f;
}

.wpcf7-not-valid-tip {
    color: #8f1837;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.wpcf7 form .wpcf7-response-output {
    margin: 1.25rem 0 0;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    border: 1px solid var(--primary-color);
    background: #f6edf8;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output {
    border-color: #8f1837;
    background: #fef2f2;
}

/* Anchor offset for sticky header */
#enrol-form {
    scroll-margin-top: 100px;
}
