/* Base Variables for Royal Maroon & Gold Theme */
:root {
    --maroon-dark: #3a0008;
    --maroon-main: #6b0f1a;
    --maroon-light: #941b27;

    --gold-dark: #b8860b;
    --gold-main: #d4af37;
    --gold-light: #f3e5ab;

    --bg-cream: #fdfbf7;
    --bg-light: #f5f0e6;

    --text-dark: #2c1e16;
    --text-light: #5a4a42;
    --white: #ffffff;

    --success: #28a745;
    --danger: #dc3545;

    --font-heading: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;

    --shadow-sm: 0 4px 6px rgba(107, 15, 26, 0.05);
    --shadow-md: 0 10px 20px rgba(107, 15, 26, 0.08);
    --shadow-lg: 0 20px 40px rgba(107, 15, 26, 0.12);

    --radius-md: 12px;
    --radius-lg: 24px;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-cream);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.logo {
    font-family: var(--font-heading);
    color: var(--maroon-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.highlight {
    color: var(--gold-dark);
}

.text-success {
    color: var(--success);
}

.text-danger {
    color: var(--danger);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold-main), var(--gold-dark));
    color: var(--white);
    border: none;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--maroon-main);
    border: 2px solid var(--maroon-main);
}

.btn-outline:hover {
    background: var(--maroon-main);
    color: var(--white);
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background-color: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 2px solid var(--gold-main);
    box-shadow: 0 2px 10px rgba(107, 15, 26, 0.1);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--maroon-main);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--gold-dark);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.nav-toggle {
    display: none;
    width: auto;
    height: auto;
    border: none;
    background: transparent;
    color: var(--maroon-main);
    font-size: 1.45rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    padding: 6px;
    box-shadow: none;
    transition: all 0.3s ease;
}

.nav-toggle:hover,
.navbar.nav-open .nav-toggle {
    background: transparent;
    color: var(--gold-dark);
}

/* Hero Section */
.hero {
    padding: 160px 5% 100px;
    text-align: center;
    background: radial-gradient(circle at center, var(--bg-light) 0%, var(--bg-cream) 100%);
    position: relative;
    z-index: 0;
    /* Create stacking context so ::before can be behind content but above bg */
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 40 40"><circle cx="20" cy="20" r="20" fill="none" stroke="%23d4af37" stroke-width="1" opacity="0.3"/><circle cx="0" cy="0" r="20" fill="none" stroke="%23d4af37" stroke-width="1" opacity="0.3"/><circle cx="40" cy="0" r="20" fill="none" stroke="%23d4af37" stroke-width="1" opacity="0.3"/><circle cx="0" cy="40" r="20" fill="none" stroke="%23d4af37" stroke-width="1" opacity="0.3"/><circle cx="40" cy="40" r="20" fill="none" stroke="%23d4af37" stroke-width="1" opacity="0.3"/></svg>');
    background-size: 50px 50px;
    opacity: 0.35;
    z-index: -1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 3px double var(--gold-main);
    pointer-events: none;
    z-index: 10;
    opacity: 0.8;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 20px;
}

.arch-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    /* Adjust if you want the arch wider or narrower */
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.hero-arch-bg {
    width: 100%;
    height: auto;
    display: block;
    mix-blend-mode: multiply;
}

.hero-text-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 22% 15% 5%;
    /* Flexible padding based on arch width */
    text-align: center;
}

.tagline {
    display: inline-block;
    color: var(--gold-dark);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
    background: rgba(212, 175, 55, 0.1);
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.hero h1 {
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 30px;
}

.trust-text {
    font-size: 0.9rem !important;
    color: var(--text-light) !important;
    font-weight: 500;
}

.trust-text i {
    color: var(--gold-main);
}

/* Banner */
.banner {
    background: radial-gradient(circle, #58030c 0%, #200003 100%);
    border-top: 4px double var(--gold-main);
    border-bottom: 4px double var(--gold-main);
    padding: 40px 5%;
    text-align: center;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.7), var(--shadow-md);
    width: 100%;
    position: relative;
    z-index: 2;
    margin: 0;
    box-sizing: border-box;
}

.banner p {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--gold-light);
    font-family: var(--font-heading);
    letter-spacing: 1.5px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    display: block;
    margin-bottom: 8px;
}

.banner small {
    display: block;
    color: #f5f0e6;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.2rem;
    margin-top: 10px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

.section-header h2::after {
    content: '⚜';
    position: absolute;
    bottom: -13px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.65rem;
    /* Larger, royal fleur-de-lis symbol */
    color: var(--gold-main);
    width: 230px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1;
    background:
        linear-gradient(to right, transparent, var(--gold-main) 20%, transparent 42%, transparent 58%, var(--gold-main) 80%, transparent) no-repeat center/100% 1.5px;
    /* Clearer gold lines */
}

.section-header p {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Shared Elegant Wallpaper Backdrop for Sections */
.how-it-works,
.comparison,
.pricing,
.testimonials,
.faq {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.how-it-works::before,
.comparison::before,
.pricing::before,
.testimonials::before,
.faq::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="70" height="70" viewBox="0 0 70 70"><g fill="none" stroke="%23d4af37" stroke-width="0.65" opacity="0.08"><path d="M35 15 L38 27 L50 31 L38 35 L35 47 L32 35 L20 31 L32 27 Z"/><circle cx="35" cy="31" r="3"/><circle cx="0" cy="0" r="1.5" fill="%23d4af37" opacity="0.15"/><circle cx="70" cy="0" r="1.5" fill="%23d4af37" opacity="0.15"/><circle cx="0" cy="70" r="1.5" fill="%23d4af37" opacity="0.15"/><circle cx="70" cy="70" r="1.5" fill="%23d4af37" opacity="0.15"/></g></svg>');
    background-size: 70px 70px;
    z-index: -2;
    pointer-events: none;
}

/* How It Works */
.how-it-works {
    padding: 100px 5%;
    background-color: var(--bg-light);
    /* Warm sand cream */
}

.how-it-works::after {
    content: '';
    position: absolute;
    top: 30px;
    left: 30px;
    right: 30px;
    bottom: 30px;
    border: 1px solid rgba(212, 175, 55, 0.4);
    pointer-events: none;
    z-index: 1;
}

.corner-ornament {
    position: absolute;
    width: 160px;
    /* Increased from 140px */
    height: 160px;
    background-image: url('assets/2%20copy.png');
    background-size: 450px;
    /* Scaled up proportionately */
    background-position: top left;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 2;
    opacity: 0.85;
    mix-blend-mode: multiply;
}

.corner-ornament.top-left {
    top: 25px;
    left: 25px;
}

.corner-ornament.top-right {
    top: 25px;
    right: 25px;
    transform: scaleX(-1);
}

.corner-ornament.bottom-left {
    bottom: 25px;
    left: 25px;
    transform: scaleY(-1);
}

.corner-ornament.bottom-right {
    bottom: 25px;
    right: 25px;
    transform: scale(-1);
}

.process-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.process-step {
    flex: 1;
    background: #fdfbf7;
    padding: 50px 40px 40px;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 25px rgba(107, 15, 26, 0.05);
    border: 3px double var(--gold-main);
    position: relative;
}

.process-step::before {
    content: '✦';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    border: 1px solid var(--gold-main);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--gold-dark);
    font-size: 0.8rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.process-step.dark-step {
    background: radial-gradient(circle at top left, #58030c 0%, #200003 100%);
    color: var(--white);
    border: 3px double var(--gold-main);
}

.process-step.dark-step::before {
    background: var(--maroon-dark);
    color: var(--gold-main);
}

.process-step.dark-step h3 {
    color: var(--gold-light);
}

.process-step.dark-step p {
    color: #f5f0e6;
}

.process-arrow {
    font-size: 1.2rem;
    color: var(--gold-main);
    background: #fdfbf7;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid var(--gold-main);
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.2);
}

.step-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* Features */
.features {
    padding: 100px 5%;
    background: radial-gradient(circle at center, var(--bg-light) 0%, var(--bg-cream) 100%);
    border-bottom: 2px solid rgba(212, 175, 55, 0.2);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 40 40"><circle cx="20" cy="20" r="20" fill="none" stroke="%23d4af37" stroke-width="1" opacity="0.3"/><circle cx="0" cy="0" r="20" fill="none" stroke="%23d4af37" stroke-width="1" opacity="0.3"/><circle cx="40" cy="0" r="20" fill="none" stroke="%23d4af37" stroke-width="1" opacity="0.3"/><circle cx="0" cy="40" r="20" fill="none" stroke="%23d4af37" stroke-width="1" opacity="0.3"/><circle cx="40" cy="40" r="20" fill="none" stroke="%23d4af37" stroke-width="1" opacity="0.3"/></svg>');
    background-size: 50px 50px;
    opacity: 0.35;
    z-index: -2;
    pointer-events: none;
}

.features::after {
    content: '';
    position: absolute;
    top: 25px;
    left: 25px;
    right: 25px;
    bottom: 25px;
    border: 1.5px solid var(--gold-main);
    border-radius: var(--radius-lg);
    /* Rounded card-like frame */
    pointer-events: none;
    z-index: 10;
    opacity: 0.5;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    max-width: 1460px;
    margin: 40px auto 0;
}

.feature-card {
    background: #fdfcf7;
    padding: 32px 24px;
    border-radius: 0 24px 0 24px;
    /* Asymmetrical leaf-shield shape */
    box-shadow: 0 6px 15px rgba(107, 15, 26, 0.03);
    display: flex;
    gap: 20px;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1.5px solid rgba(212, 175, 55, 0.4);
    position: relative;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(107, 15, 26, 0.08);
    border-color: var(--gold-main);
    border-radius: 24px 0 24px 0;
    /* Animated corner flip on hover! */
}

.feature-icon {
    font-size: 1.1rem;
    color: var(--gold-dark);
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--gold-main);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 0;
}

.feature-card h4 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: var(--maroon-dark);
    letter-spacing: 0.5px;
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Comparison */
.comparison {
    padding: 100px 5%;
    background-color: var(--bg-light);
    /* Warm sand cream */
}

.compare-table {
    width: 100%;
    max-width: 900px;
    margin: 40px auto 0;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 3px double var(--gold-main);
    /* Double gold border frame */
}

.compare-table th,
.compare-table td {
    padding: 22px 28px;
    text-align: center;
    border-bottom: 1.5px solid rgba(212, 175, 55, 0.15);
}

.compare-table th {
    background: radial-gradient(circle at top left, #58030c 0%, #200003 100%);
    /* Royal velvet header */
    font-family: var(--font-heading);
    color: var(--gold-light);
    font-size: 1.25rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.compare-table th:first-child {
    text-align: left;
}

.compare-table tbody tr {
    background-color: #fdfcf9;
    transition: background 0.3s ease;
}

.compare-table tbody tr:nth-child(even) {
    background-color: #f5f0e6;
    /* Soft cream contrasting row */
}

.compare-table tbody tr:hover {
    background-color: rgba(212, 175, 55, 0.05);
    /* Soft gold hover */
}

.compare-table td:first-child {
    text-align: left;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--maroon-dark);
    font-size: 1.05rem;
}

/* Feature highlight column */
.compare-table td:nth-child(3),
.compare-table th:nth-child(3) {
    background-color: rgba(212, 175, 55, 0.03);
    border-left: 1.5px solid rgba(212, 175, 55, 0.15);
    border-right: 1.5px solid rgba(212, 175, 55, 0.15);
}

.compare-table tbody tr:hover td:nth-child(3) {
    background-color: rgba(212, 175, 55, 0.08);
    /* slightly stronger gold tint on hover */
}

/* Red cross indicator */
.compare-table .text-danger {
    color: #cc3333;
    font-size: 1.2rem;
    filter: drop-shadow(0 2px 4px rgba(204, 51, 51, 0.15));
}

/* Gold check indicator */
.compare-table .text-success {
    color: var(--gold-main);
    font-size: 1.35rem;
    filter: drop-shadow(0 2px 6px rgba(212, 175, 55, 0.45));
}

/* Testimonials */
.testimonials {
    padding: 40px 5% 80px;
    background-color: var(--bg-light);
    /* Warm sand cream */
}

.dark-banner {
    background: linear-gradient(to right, var(--maroon-dark), var(--maroon-main));
    color: var(--white);
    border: none;
    box-shadow: 0 10px 30px rgba(107, 15, 26, 0.3);
    margin-bottom: 80px;
    transform: none;
    width: 100%;
    max-width: 800px;
}

.dark-banner h2 {
    color: var(--gold-main);
    font-size: 2.5rem;
    margin: 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    text-align: center;
    border-top: 4px solid var(--gold-main);
}

.stars {
    color: var(--gold-main);
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.testimonial-card p {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 20px;
}

.testimonial-card h4 {
    color: var(--maroon-main);
}

.client-feedback {
    padding: 80px 5%;
    background: radial-gradient(circle at center, var(--bg-light) 0%, var(--bg-cream) 100%);
    border-top: 1px solid rgba(212, 175, 55, 0.18);
    border-bottom: 1px solid rgba(212, 175, 55, 0.18);
}

.feedback-form {
    width: min(100%, 760px);
    margin: 0 auto;
    padding: 34px;
    background: var(--white);
    border: 3px double var(--gold-main);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    display: grid;
    gap: 20px;
}

.feedback-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.feedback-field {
    display: grid;
    gap: 8px;
    color: var(--maroon-dark);
    font-weight: 800;
}

.feedback-field span {
    font-size: 0.9rem;
}

.feedback-field input,
.feedback-field select,
.feedback-field textarea {
    width: 100%;
    border: 1.5px solid rgba(212, 175, 55, 0.34);
    border-radius: 8px;
    background: #fffdf8;
    color: var(--text-dark);
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding: 13px 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.feedback-field input:focus,
.feedback-field select:focus,
.feedback-field textarea:focus {
    background: var(--white);
    border-color: var(--gold-main);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.14);
}

.feedback-form .btn {
    justify-self: end;
    border: none;
}

.feedback-success {
    display: none;
    padding: 13px 15px;
    border-radius: 8px;
    background: rgba(40, 167, 69, 0.12);
    color: var(--success);
    font-weight: 800;
}

.feedback-success.show {
    display: block;
}

/* Pricing */
.pricing {
    padding: 80px 5%;
    background-color: var(--bg-cream);
    /* Soft ivory cream */
}

.pricing-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.pricing-card {
    background: var(--white);
    padding: 50px 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    flex: 1;
    min-width: 320px;
    position: relative;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.pricing-card h3 {
    font-size: 3rem;
    margin: 15px 0;
    color: var(--maroon-dark);
}

.features-list {
    margin: 30px 0;
    text-align: left;
}

.features-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-light);
}

.features-list i {
    color: var(--gold-main);
    width: 20px;
}

.pricing-card .btn {
    width: 100%;
}

.premium-card {
    background: linear-gradient(145deg, var(--maroon-dark), var(--maroon-main));
    color: var(--white);
    border: 3px double var(--gold-main);
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.premium-card h3,
.premium-card p,
.premium-card .features-list li {
    color: var(--white);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold-main);
    color: var(--maroon-dark);
    padding: 5px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

/* FAQ */
.faq {
    padding: 80px 5%;
    background-color: var(--bg-cream);
    /* Soft ivory cream */
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border: 1px solid rgba(212, 175, 55, 0.22);
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(107, 15, 26, 0.02);
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(212, 175, 55, 0.45);
    box-shadow: 0 6px 16px rgba(107, 15, 26, 0.05);
}

.faq-question {
    padding: 16px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: var(--white);
}

.faq-question h3 {
    font-size: 1.02rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--maroon-dark);
    letter-spacing: 0.5px;
}

.faq-question i {
    color: var(--gold-main);
    transition: transform 0.3s;
    font-size: 0.95rem;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 22px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    background: #faf9f6;
    /* Elegant soft inner cream */
    color: var(--text-light);
    font-size: 0.95rem;
}

.faq-item.active .faq-answer {
    padding: 0 22px 18px;
    max-height: 250px;
}

/* Footer */
.footer {
    text-align: center;
    background: var(--bg-cream);
}

.footer-cta {
    padding: 64px 5% 58px;
    background: radial-gradient(circle at center, #fffdf8 0%, #f8f3ea 100%);
}

.footer-cta h2 {
    color: var(--maroon-dark);
    font-size: clamp(2rem, 4vw, 3.05rem);
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: 1.8px;
}

.footer-cta p {
    color: var(--text-light);
    font-size: 1.05rem;
    margin-bottom: 34px;
}

.footer-cta .btn {
    min-width: 200px;
    padding: 15px 34px;
    box-shadow: 0 12px 25px rgba(184, 134, 11, 0.28);
}

.footer-bottom {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 10%, rgba(148, 27, 39, 0.32), transparent 42%),
        radial-gradient(circle at 18% 45%, rgba(212, 175, 55, 0.08), transparent 25%),
        linear-gradient(135deg, #3b0008 0%, #190003 52%, #4b020d 100%);
    border-top: 3px double var(--gold-main);
    color: rgba(255, 255, 255, 0.86);
    padding: 36px 5% 40px;
}

.footer-bottom::before,
.footer-bottom::after {
    content: '';
    position: absolute;
    bottom: -42px;
    width: 220px;
    height: 220px;
    border: 1px solid rgba(212, 175, 55, 0.16);
    border-radius: 50% 0 50% 0;
    opacity: 0.55;
    pointer-events: none;
}

.footer-bottom::before {
    left: -68px;
    transform: rotate(16deg);
}

.footer-bottom::after {
    right: -68px;
    transform: scaleX(-1) rotate(16deg);
}

.footer-ornament {
    position: absolute;
    top: -24px;
    left: 50%;
    width: 78px;
    height: 34px;
    transform: translateX(-50%);
    color: var(--gold-main);
    background:
        radial-gradient(circle at 50% 50%, var(--gold-main) 0 5px, transparent 6px),
        linear-gradient(45deg, transparent 34%, var(--gold-main) 35% 38%, transparent 39%),
        linear-gradient(-45deg, transparent 34%, var(--gold-main) 35% 38%, transparent 39%);
}

.footer-main {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(260px, 1.15fr) repeat(auto-fit, minmax(210px, 1fr));
    justify-content: start;
    justify-items: start;
    gap: 42px;
    max-width: 1440px;
    margin: 0;
    text-align: left;
}

.footer-brand {
    max-width: 260px;
}

.footer-monogram {
    width: 76px;
    height: 76px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--gold-main);
    border-radius: 50%;
    color: var(--gold-main);
    box-shadow: 0 0 0 8px rgba(212, 175, 55, 0.08), inset 0 0 0 6px rgba(212, 175, 55, 0.1);
    position: relative;
}

.footer-monogram::before {
    content: '\f521';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.96rem;
}

.footer-monogram span {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(212, 175, 55, 0.62);
    border-radius: 50%;
    color: var(--gold-main);
    font-family: var(--font-heading);
    font-size: 1.72rem;
    font-weight: 700;
}

.footer-logo {
    color: var(--gold-main);
    font-family: var(--font-heading);
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-brand p {
    margin-top: 16px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.84rem;
    line-height: 1.65;
}

.footer-socials {
    display: flex;
    gap: 11px;
    margin-top: 20px;
}

.footer-socials a {
    width: 34px;
    height: 34px;
    border: 1px solid var(--gold-main);
    border-radius: 50%;
    color: var(--gold-main);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.footer-socials a:hover {
    background: var(--gold-main);
    color: var(--maroon-dark);
    transform: translateY(-2px);
}

.footer-column h3,
.footer-contact h3 {
    color: var(--gold-main);
    font-size: 0.96rem;
    margin-bottom: 10px;
    letter-spacing: 0.4px;
}

.footer-heading-line,
.footer-divider-small {
    width: 94px;
    height: 10px;
    margin-bottom: 16px;
    background:
        radial-gradient(circle at 50% 50%, var(--gold-main) 0 3px, transparent 4px),
        linear-gradient(to right, transparent, rgba(212, 175, 55, 0.55), transparent);
    background-size: 100% 1px, 100% 1px;
    background-repeat: no-repeat;
    background-position: center;
}

.footer-divider-small {
    width: 96px;
    margin: 8px 0 0;
}

.footer-column,
.footer-contact {
    padding-top: 16px;
}

.footer-column a {
    display: block;
    color: rgba(255, 255, 255, 0.88);
    margin: 0 0 11px;
    font-size: 0.82rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-column a::before {
    content: '›';
    color: var(--gold-main);
    display: inline-block;
    margin-right: 10px;
    font-size: 1rem;
    line-height: 1;
}

.footer-column a:hover {
    color: var(--gold-light);
    transform: translateX(4px);
}

.footer-contact p {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.82rem;
    line-height: 1.55;
}

.footer-contact i {
    width: 15px;
    margin-top: 4px;
    font-size: 0.84rem;
    color: var(--gold-main);
    flex-shrink: 0;
    text-align: center;
}

.footer-trust-row {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    max-width: 1260px;
    margin: 36px auto 0;
    padding: 14px 0;
    border-top: 1px solid rgba(212, 175, 55, 0.22);
    border-bottom: 1px solid rgba(212, 175, 55, 0.22);
}

.footer-trust-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 46px;
    padding: 0 16px;
    color: #f7ead2;
    font-family: var(--font-heading);
    font-size: 0.86rem;
    line-height: 1.32;
    text-align: left;
    border-right: 1px solid rgba(212, 175, 55, 0.32);
}

.footer-trust-item:last-child {
    border-right: none;
}

.footer-trust-item i {
    color: var(--gold-main);
    font-size: 1.55rem;
    width: 30px;
    text-align: center;
    flex-shrink: 0;
}

.footer-copyright {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 24px;
    text-align: right;
}

.footer-copyright p {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.88rem;
    margin: 0;
    white-space: nowrap;
}

.footer-copyright .footer-divider-small {
    margin: 8px auto 12px;
}

.footer-payments {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-payments span {
    min-width: 64px;
    min-height: 32px;
    padding: 6px 12px;
    border: 1px solid rgba(212, 175, 55, 0.72);
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
    background: rgba(44, 0, 7, 0.5);
}

.footer-payments span:not(.payment-mastercard) {
    font-style: italic;
}

.footer-payments span:last-child {
    font-size: 0.62rem;
    font-style: normal;
}

.payment-mastercard {
    gap: 0;
}

.payment-mastercard i {
    width: 18px;
    height: 18px;
    display: block;
    border-radius: 50%;
}

.payment-mastercard i:first-child {
    background: #eb001b;
    margin-right: -6px;
}

.payment-mastercard i:last-child {
    background: #f79e1b;
    opacity: 0.9;
}

@media (max-width: 1180px) {
    .footer-main {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 42px;
    }

    .footer-brand {
        max-width: none;
    }

    .footer-trust-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-trust-item {
        justify-content: flex-start;
        border-right: none;
        border-bottom: 1px solid rgba(212, 175, 55, 0.22);
    }

    .footer-trust-item:last-child {
        grid-column: 1 / -1;
        border-bottom: none;
        justify-content: center;
    }
}

@media (max-width: 700px) {
    .footer-cta {
        padding: 52px 6% 46px;
    }

    .footer-cta h2 {
        font-size: 1.85rem;
    }

    .footer-bottom {
        padding: 30px 6% 34px;
    }

    .footer-main,
    .footer-trust-row {
        grid-template-columns: 1fr;
    }

    .footer-main {
        gap: 28px;
        text-align: center;
        justify-items: center;
    }

    .footer-brand,
    .footer-monogram,
    .footer-heading-line,
    .footer-divider-small {
        margin-left: auto;
        margin-right: auto;
    }

    .footer-socials,
    .footer-contact p,
    .footer-trust-item {
        justify-content: center;
    }

    .footer-contact p,
    .footer-trust-item {
        text-align: left;
    }

    .footer-column,
    .footer-contact {
        padding-top: 10px;
    }

    .footer-trust-row {
        margin-top: 26px;
        padding: 4px 0;
    }

    .footer-trust-item,
    .footer-trust-item:last-child {
        grid-column: auto;
        border-bottom: 1px solid rgba(212, 175, 55, 0.22);
        min-height: auto;
        padding: 12px 0;
    }

    .footer-trust-item:last-child {
        border-bottom: none;
    }

    .footer-payments {
        gap: 8px;
    }

    .footer-payments span {
        min-width: 58px;
    }

    .footer-copyright {
        align-items: center;
        flex-direction: column;
        gap: 14px;
        text-align: center;
    }

    .footer-copyright p {
        white-space: normal;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        padding: 100px 5% 40px;
    }

    .hero::after {
        top: 10px;
        left: 10px;
        right: 10px;
        bottom: 10px;
        border-width: 2px;
    }

    .hero-content {
        padding: 0;
    }

    .arch-container {
        width: 100%;
        /* Return to 100% so it fits screen */
        max-width: 95%;
        left: 0;
        transform: none;
    }

    .hero-text-wrapper {
        padding: 32% 15% 11%;
        transform: translateY(10px);
        /* Push text down strictly below the dome */
    }

    .hero h1 {
        font-size: 1.42rem;
        margin-bottom: 8px;
    }

    .hero-buttons {
        gap: 8px;
        margin-bottom: 18px;
    }

    .hero-buttons .btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .hero-buttons .btn-outline {
        background: var(--maroon-main);
        color: var(--white);
        border-color: var(--maroon-main);
    }

    .trust-text {
        font-size: 0.75rem !important;
        margin-top: 0;
        margin-bottom: 0;
        max-width: 280px;
        line-height: 1.35;
    }

    .navbar {
        padding: 14px 5%;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: calc(100% + 2px);
        right: 5%;
        width: min(280px, 90vw);
        display: none;
        flex-direction: column;
        align-items: flex-end;
        gap: 0;
        padding: 18px;
        background: rgba(253, 251, 247, 0.96);
        border: 1px solid rgba(212, 175, 55, 0.35);
        border-radius: 10px;
        box-shadow: 0 12px 30px rgba(107, 15, 26, 0.1);
    }

    .navbar.nav-open .nav-menu {
        display: flex;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        gap: 0;
        text-align: right;
        width: 100%;
    }

    .nav-links a {
        padding: 11px 0;
        border-bottom: 1px solid rgba(212, 175, 55, 0.45);
    }

    .nav-actions {
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        gap: 10px;
        width: 100%;
        flex-wrap: wrap;
        padding-top: 12px;
        margin-top: 12px;
        border-top: 1px solid rgba(212, 175, 55, 0.45);
    }

    .nav-auth-form {
        width: 100%;
    }

    .nav-actions .btn,
    .nav-auth-form .btn {
        display: flex;
        justify-content: center;
        width: 100%;
        min-width: 0;
        padding: 10px 12px;
        font-size: 0.86rem;
        white-space: nowrap;
    }

    .how-it-works {
        padding: 90px 8% 140px;
        /* Increased bottom padding to clear the larger ornaments */
    }

    .how-it-works::after {
        top: 15px;
        left: 15px;
        right: 15px;
        bottom: 15px;
    }

    .corner-ornament {
        width: 115px;
        /* Increased from 90px */
        height: 115px;
        background-size: 330px;
        /* Scaled up proportionately */
    }

    .corner-ornament.top-left {
        top: 10px;
        left: 10px;
    }

    .corner-ornament.top-right {
        top: 10px;
        right: 10px;
    }

    .corner-ornament.bottom-left {
        bottom: 10px;
        left: 10px;
    }

    .corner-ornament.bottom-right {
        bottom: 10px;
        right: 10px;
    }

    .process-container {
        flex-direction: column;
        gap: 30px;
    }

    .process-step {
        width: 94%;
        max-width: 340px;
        /* Widened slightly to force a horizontal rectangle shape */
        margin: 0 auto;
        padding: 30px 20px;
    }

    .step-content h3 {
        font-size: 1.25rem;
        margin-bottom: 8px;
    }

    .process-step p {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .process-arrow {
        transform: rotate(90deg);
        margin: 10px auto;
    }

    .premium-card {
        transform: scale(1);
    }

    .hero-buttons {
        flex-direction: column;
    }

    .banner {
        padding: 30px 5%;
    }

    .banner p {
        font-size: 1.1rem;
    }

    .banner small {
        font-size: 0.8rem;
    }

    .features::after {
        top: 10px;
        left: 10px;
        right: 10px;
        bottom: 10px;
        border-width: 2px;
    }

    .comparison {
        padding: 80px 6%;
    }

    .compare-table {
        display: block;
        width: 100%;
        max-width: 480px;
        margin: 30px auto 0;
        border: none;
        box-shadow: none;
        background: transparent;
    }

    .compare-table thead {
        display: none;
        /* Hide header row on mobile */
    }

    .compare-table tbody,
    .compare-table tr,
    .compare-table td {
        display: block;
        width: 100%;
    }

    .compare-table tr {
        background: #fdfbf7;
        border: 2px solid rgba(212, 175, 55, 0.35);
        /* Elegant gold card frame */
        border-radius: var(--radius-md);
        margin-bottom: 20px;
        padding: 20px;
        box-shadow: 0 8px 20px rgba(107, 15, 26, 0.04);
        position: relative;
    }

    .compare-table td {
        border: none !important;
        padding: 10px 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }

    /* Style the first cell (Feature name) as a card header block */
    .compare-table td:first-child {
        display: block;
        text-align: center;
        font-family: var(--font-heading);
        font-size: 1.15rem;
        color: var(--maroon-dark);
        border-bottom: 1.5px solid rgba(212, 175, 55, 0.2) !important;
        padding-bottom: 12px;
        margin-bottom: 12px;
        background: transparent !important;
    }

    /* Add text labels for the columns on mobile */
    .compare-table td:nth-child(2)::before {
        content: "Traditional Paper";
        font-family: var(--font-body);
        font-weight: 600;
        color: var(--text-light);
        font-size: 0.95rem;
    }

    .compare-table td:nth-child(3)::before {
        content: "Our Digital Webpage";
        font-family: var(--font-body);
        font-weight: 700;
        color: var(--gold-dark);
        font-size: 0.95rem;
    }

    /* Keep center alignment clean for indicator values */
    .compare-table td:nth-child(2),
    .compare-table td:nth-child(3) {
        background: transparent !important;
    }

    /* Everything You Need Carousel (Mobile) */
    /* Everything You Need Carousel (Mobile) - Single Card Focus */
    .features-grid {
        display: flex !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        scroll-behavior: smooth !important;
        gap: 20px !important;
        padding: 10px 0 30px !important;
        margin: 20px 0 0 !important;
        width: 100% !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        /* Hide default scrollbar */
    }

    .features-grid::-webkit-scrollbar {
        display: none;
        /* Hide Chrome/Safari scrollbar */
    }

    .feature-card {
        flex: 0 0 100% !important;
        /* Show exactly one whole card */
        max-width: 100% !important;
        scroll-snap-align: center !important;
        margin: 0 !important;
        box-shadow: 0 8px 25px rgba(107, 15, 26, 0.05) !important;
    }

    .feedback-form {
        padding: 24px 18px;
    }

    .feedback-grid {
        grid-template-columns: 1fr;
    }

    .feedback-form .btn {
        width: 100%;
        justify-self: stretch;
    }

    /* Testimonials Carousel (Mobile) - Single Card Focus */
    .testimonials-grid {
        display: flex !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        scroll-behavior: smooth !important;
        gap: 20px !important;
        padding: 10px 0 30px !important;
        margin: 20px 0 0 !important;
        width: 100% !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .testimonials-grid::-webkit-scrollbar {
        display: none;
    }

    .testimonial-card {
        flex: 0 0 100% !important;
        /* Show exactly one whole card */
        max-width: 100% !important;
        scroll-snap-align: center !important;
        margin: 0 !important;
        box-shadow: 0 8px 25px rgba(107, 15, 26, 0.05) !important;
    }
}

/* Templates Page Specific Styling */
.templates-body {
    background-color: var(--bg-cream);
    color: var(--text-dark);
}

.templates-header-section {
    padding: 80px 5% 0;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.templates-arch-bg {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    height: 120%;
    width: auto;
    max-height: 480px;
    opacity: 0.08;
    /* Delicate arch backdrop */
    z-index: -1;
    pointer-events: none;
}

.templates-pill-bar {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background: #fdfdf5;
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 8px 24px;
    border-radius: 30px;
    margin: 15px auto 20px;
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.05);
}

.templates-pill-bar .pill-text {
    font-size: 0.88rem;
    color: var(--gold-dark);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.templates-pill-bar .pill-text i {
    margin-right: 6px;
    color: var(--gold-main);
}

.templates-headline {
    margin-bottom: 25px;
}

.templates-headline h3 {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    color: var(--maroon-dark);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.templates-headline p {
    font-size: 1rem;
    color: var(--text-light);
}

/* Search & Filter Row Container */
.search-filter-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    max-width: 920px;
    margin: 25px auto 45px;
    width: 100%;
    padding: 0 15px;
}

/* Royal Search Bar */
.search-container {
    max-width: 480px;
    width: 100%;
    margin: 0;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--white);
    border: 2px solid rgba(212, 175, 55, 0.35);
    border-radius: 30px;
    padding: 4px 6px 4px 22px;
    box-shadow: 0 8px 25px rgba(107, 15, 26, 0.04);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.search-wrapper:focus-within {
    border-color: var(--gold-main);
    box-shadow: 0 10px 30px rgba(107, 15, 26, 0.09);
    transform: translateY(-2px);
}

.search-icon {
    color: var(--gold-main);
    font-size: 1.15rem;
    margin-right: 12px;
}

#template-search {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    padding: 12px 0;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-dark);
}

#template-search::placeholder {
    color: var(--text-light);
    opacity: 0.65;
}

/* Filter Tabs */
.templates-tabs {
    display: flex;
    background: #f5f0e6;
    border-radius: 30px;
    padding: 4px;
    max-width: 420px;
    width: 100%;
    margin: 0;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.15);
}

.templates-tabs .tab-btn {
    flex: 1;
    border: none;
    background: none;
    padding: 12px 24px;
    border-radius: 30px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    color: var(--text-light);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.templates-tabs .tab-btn i {
    font-size: 0.95rem;
}

.templates-tabs .tab-btn.active {
    background: var(--white);
    color: var(--maroon-dark);
    box-shadow: 0 4px 12px rgba(107, 15, 26, 0.06);
}

.templates-tabs .tab-btn:hover:not(.active) {
    color: var(--maroon-main);
}

/* Templates Grid */
.templates-grid-section {
    padding: 40px 7% 120px;
    position: relative;
    overflow: hidden;
}

.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 45px;
    /* Increased gap to prevent congestion */
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 5;
}

.template-card {
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid rgba(212, 175, 55, 0.15);
    box-shadow: 0 10px 25px rgba(107, 15, 26, 0.02);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.template-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 35px rgba(107, 15, 26, 0.08);
    border-color: rgba(212, 175, 55, 0.3);
}

.card-preview-wrapper {
    position: relative;
    height: 230px;
    overflow: hidden;
}

.card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 12px;
    border-radius: 20px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    z-index: 5;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-badge.gold-badge {
    background: var(--gold-main);
    color: var(--maroon-dark);
}

.card-badge.red-badge {
    background: var(--maroon-main);
    color: var(--white);
}

/* Template Preview Screens */
.template-preview {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    transition: transform 0.5s ease;
}

.template-card:hover .template-preview {
    transform: scale(1.04);
}

.preview-inner-border {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: 1.5px solid rgba(212, 175, 55, 0.4);
    pointer-events: none;
    z-index: 2;
}

.preview-crest {
    font-size: 2rem;
    color: var(--gold-main);
    margin-bottom: 10px;
    z-index: 2;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.template-preview h3 {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    color: var(--white);
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 2;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* Specific Card Previews */
.preview-emerald {
    background: radial-gradient(circle, #0e3020 0%, #061a10 100%);
}

.preview-crimson {
    background: radial-gradient(circle, #4a0e17 0%, #1e0205 100%);
}

.preview-rose {
    background: radial-gradient(circle, #fdf2f2 0%, #fbd5d8 100%);
}

.preview-rose h3 {
    color: #c5898d;
    text-shadow: none;
}

.preview-rose .preview-crest {
    color: #c5898d;
}

.preview-rose .preview-inner-border {
    border-color: rgba(197, 137, 141, 0.4);
}

.preview-minimal {
    background: radial-gradient(circle, #0f172a 0%, #020617 100%);
}

.preview-majestic {
    background: radial-gradient(circle, #fffbf0 0%, #fbf4d7 100%);
}

.preview-majestic h3 {
    color: var(--maroon-dark);
    text-shadow: none;
}

.preview-majestic .preview-inner-border {
    border-color: rgba(212, 175, 55, 0.35);
}

.preview-garden {
    background: linear-gradient(135deg, #fbc2eb 0%, #a6c1ee 100%);
}

.preview-garden h3 {
    color: #5b21b6;
    text-shadow: none;
}

.preview-garden .preview-crest {
    color: #7c3aed;
}

.preview-garden .preview-inner-border {
    border-color: rgba(124, 58, 237, 0.35);
}

/* Royal Collection Previews */
.preview-royal-durbar {
    background: radial-gradient(circle, #d97706 0%, #7c2d12 100%);
}

.preview-royal-peacock {
    background: radial-gradient(circle, #1e3a8a 0%, #0f172a 100%);
}

.preview-royal-taj {
    background: radial-gradient(circle, #ffffff 0%, #f3f4f6 100%);
}

.preview-royal-taj h3 {
    color: var(--maroon-dark);
    text-shadow: none;
}

.preview-royal-taj .preview-inner-border {
    border-color: rgba(212, 175, 55, 0.4);
}

/* Card Info */
.card-info {
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    background: var(--white);
}

.card-info h4 {
    font-size: 1.15rem;
    font-family: var(--font-heading);
    color: var(--maroon-dark);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.card-info p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.45;
    margin-bottom: 20px;
    flex: 1;
}

.template-price {
    display: block;
    color: var(--maroon-dark);
    font-weight: 800;
    margin-bottom: 16px;
}

.template-card-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.template-card-actions .btn {
    display: block;
    width: 100%;
}

.templates-empty-state {
    grid-column: 1 / -1;
    padding: 52px 24px;
    text-align: center;
    background: var(--white);
    border: 1px solid rgba(212, 175, 55, 0.22);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

.templates-empty-state i {
    color: var(--gold-main);
    font-size: 2rem;
    margin-bottom: 12px;
}

.templates-empty-state h3 {
    color: var(--maroon-dark);
    margin-bottom: 8px;
}

.wedding-form-section {
    padding: 48px 5% 110px;
    background: var(--bg-cream);
}

.wedding-form {
    width: min(100%, 1120px);
    margin: 0 auto;
}

.wedding-step-progress {
    display: grid;
    gap: 16px;
    margin-bottom: 26px;
    padding: 24px;
    background: var(--white);
    border: 1px solid rgba(212, 175, 55, 0.26);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

.wedding-step-progress-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: var(--maroon-dark);
    font-weight: 800;
}

.wedding-step-progress-top strong {
    color: var(--gold-dark);
}

.wedding-step-progress-track {
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(212, 175, 55, 0.18);
}

.wedding-step-progress-track span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--maroon-main), var(--gold-main));
    transition: width 0.25s ease;
}

.wedding-step-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.wedding-step-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    border: 1px solid rgba(212, 175, 55, 0.32);
    border-radius: 8px;
    background: #fffdf8;
    color: var(--text-light);
    font-family: var(--font-body);
    font-weight: 800;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.wedding-step-tab span {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.16);
    color: var(--gold-dark);
    flex-shrink: 0;
}

.wedding-step-tab.is-active,
.wedding-step-tab.is-complete {
    border-color: var(--gold-main);
    background: rgba(212, 175, 55, 0.08);
    color: var(--maroon-dark);
}

.wedding-step-tab.is-active {
    box-shadow: 0 8px 18px rgba(107, 15, 26, 0.08);
}

.wedding-step-tab.is-complete span {
    background: var(--gold-main);
    color: var(--white);
}

.wedding-step-accordion {
    display: grid;
    gap: 18px;
}

.wedding-step-panel {
    overflow: hidden;
    background: var(--white);
    border: 1px solid rgba(212, 175, 55, 0.28);
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(107, 15, 26, 0.06);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wedding-step-panel.is-active {
    border-color: var(--gold-main);
    box-shadow: 0 18px 44px rgba(107, 15, 26, 0.1);
}

.wedding-step-panel>.wedding-step-tab {
    width: 100%;
    min-height: 88px;
    justify-content: flex-start;
    padding: 22px 28px;
    border: none;
    border-radius: 0;
    background: transparent;
    color: var(--text-dark);
    font-size: 1.05rem;
}

.wedding-step-panel>.wedding-step-tab span {
    width: 46px;
    height: 46px;
    background: rgba(212, 175, 55, 0.18);
    color: var(--gold-dark);
    font-size: 1rem;
}

.wedding-step-panel>.wedding-step-tab i {
    margin-left: auto;
    color: var(--gold-dark);
    font-size: 1rem;
}

.wedding-step-panel.is-active>.wedding-step-tab {
    color: var(--maroon-dark);
}

.wedding-step-panel.is-active>.wedding-step-tab span,
.wedding-step-panel.is-complete>.wedding-step-tab span {
    background: linear-gradient(135deg, var(--gold-main), var(--gold-dark));
    color: var(--white);
}

.wedding-step-panel>.wedding-form-step {
    padding: 28px;
    border-top: 1px solid rgba(212, 175, 55, 0.18);
    background: rgba(255, 253, 248, 0.45);
}

.wedding-step-panel .wedding-form-card {
    padding: 0;
    border: none;
    box-shadow: none;
    background: transparent;
}

.wedding-form-step[hidden] {
    display: none;
}

.wedding-form-step.is-active {
    animation: weddingStepFade 0.22s ease;
}

@keyframes weddingStepFade {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wedding-form-card,
.event-row {
    background: var(--white);
    border: 1px solid rgba(212, 175, 55, 0.24);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    padding: 26px;
}

.wedding-form-card {
    display: grid;
    gap: 22px;
}

.wedding-form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: start;
}

.wedding-form-grid-compact {
    padding-top: 4px;
}

.wedding-form-grid-single {
    grid-template-columns: minmax(0, 420px);
}

.wedding-field {
    display: grid;
    gap: 8px;
    min-width: 0;
    color: var(--maroon-dark);
    font-weight: 700;
}

.wedding-field span {
    font-size: 0.92rem;
    line-height: 1.3;
}

.wedding-field input,
.wedding-field select,
.wedding-field textarea {
    width: 100%;
    min-height: 46px;
    border: 1.5px solid rgba(212, 175, 55, 0.34);
    border-radius: 8px;
    background: #fffdf8;
    color: var(--text-dark);
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding: 11px 13px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.wedding-field input[type="file"] {
    padding: 8px 10px;
}

.wedding-field input:focus,
.wedding-field select:focus,
.wedding-field textarea:focus {
    background: var(--white);
    border-color: var(--gold-main);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.14);
}

.wedding-field textarea {
    min-height: 92px;
    resize: vertical;
}

.wedding-field-intro textarea {
    min-height: 64px;
    max-height: 96px;
    resize: vertical;
}

.wedding-field-full {
    grid-column: 1 / -1;
}

.wedding-map-preview {
    grid-column: 1 / -1;
    display: grid;
    gap: 14px;
    padding: 16px;
    border: 1px solid rgba(212, 175, 55, 0.24);
    border-radius: 8px;
    background: #fffdf8;
}

.wedding-map-preview[hidden] {
    display: none;
}

.wedding-map-preview iframe {
    display: block;
    width: 100%;
    border-radius: 8px;
}

.wedding-map-preview .btn {
    justify-self: start;
}

.wedding-field small {
    font-weight: 700;
}

.wedding-form-title {
    margin: 34px 0 14px;
    font-size: 1.35rem;
    color: var(--maroon-dark);
}

.wedding-form-title-inside {
    margin: 0;
}

.wedding-form-subtitle {
    margin: 4px 0 -4px;
    color: var(--gold-dark);
    font-family: var(--font-heading);
    font-size: 1rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.wedding-field span small {
    color: var(--text-light);
    font-weight: 600;
    text-transform: none;
}

#events-wrapper {
    display: grid;
    gap: 20px;
}

.event-row {
    display: grid;
    gap: 18px;
}

.event-row-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.event-remove-btn {
    justify-self: start;
    border: 1px solid rgba(107, 15, 26, 0.22);
    background: rgba(107, 15, 26, 0.08);
    color: var(--maroon-main);
    box-shadow: none;
}

.event-remove-btn:hover {
    background: var(--maroon-main);
    color: var(--white);
    transform: translateY(-2px);
}

.wedding-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.wedding-form-actions [hidden] {
    display: none !important;
}

.wedding-preview-section,
.wedding-payment-section {
    padding: 140px 5% 90px;
    background: var(--bg-cream);
}

.wedding-preview-header,
.wedding-payment-card,
.wedding-change-template-form,
.wedding-preview-toolbar {
    width: min(100%, 1120px);
    margin: 0 auto 22px;
}

.wedding-preview-header,
.wedding-payment-card {
    background: var(--white);
    border: 1px solid rgba(212, 175, 55, 0.26);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    padding: 24px;
}

.wedding-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.wedding-preview-actions,
.wedding-preview-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.wedding-preview-toolbar .is-active {
    background: var(--maroon-main);
    color: var(--white);
}

.wedding-preview-frame-wrap {
    width: min(100%, 1120px);
    min-height: 760px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    overflow: auto;
    border: 1px solid rgba(212, 175, 55, 0.26);
    border-radius: 8px;
    background: #eee8dc;
    box-shadow: var(--shadow-md);
    padding: 16px;
}

.wedding-preview-frame {
    width: 100%;
    max-width: 390px;
    min-height: 720px;
    border: none;
    border-radius: 8px;
    background: var(--white);
    transition: max-width 0.2s ease;
}

.wedding-payment-card {
    max-width: 760px;
}

.wedding-payment-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.wedding-payment-summary.total {
    color: var(--maroon-dark);
    font-size: 1.12rem;
}

.wedding-payment-features {
    margin: 22px 0;
    display: grid;
    gap: 8px;
    color: var(--text-light);
}

.wedding-payment-terms {
    margin-top: 12px;
}

.btn-use-design {
    width: 100%;
    text-align: center;
    font-weight: 700;
}

/* Responsive Templates */
@media (max-width: 1024px) {
    .wedding-form-grid,
    .event-row-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .templates-header-section {
        padding: 40px 6% 0;
    }

    .templates-pill-bar {
        max-width: 92%;
        padding: 8px 16px;
    }

    .templates-pill-bar .pill-text {
        font-size: 0.8rem;
    }

    .search-filter-row {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 25px;
    }

    .search-container,
    .templates-tabs {
        max-width: 100%;
        width: 100%;
    }

    .templates-tabs {
        margin: 0;
    }

    .templates-tabs .tab-btn {
        padding: 10px 16px;
        font-size: 0.78rem;
    }

    .templates-grid-section {
        padding: 0 6% 80px;
    }

    .templates-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .wedding-form-section {
        padding: 34px 5% 80px;
    }

    .wedding-form-card,
    .event-row {
        padding: 20px;
    }

    .wedding-step-progress {
        padding: 18px;
    }

    .wedding-step-progress-top {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .wedding-step-tabs {
        grid-template-columns: 1fr;
    }

    .wedding-step-tab {
        justify-content: flex-start;
        padding: 10px 12px;
    }

    .wedding-form-grid,
    .event-row-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .wedding-form-actions {
        justify-content: stretch;
    }

    .wedding-form-actions .btn {
        width: 100%;
    }
}

/* Interactive 3D Card Pricing Styling */
.pricing-container {
    display: flex;
    gap: 40px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 40px auto 0;
    perspective: 1500px;
    /* Crucial for 3D card flips */
}

.pricing-card-interactive {
    width: 380px;
    height: 550px;
    background: transparent;
    cursor: pointer;
    position: relative;
    border-radius: var(--radius-lg);
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 1.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* Slow, majestic flip speed */
    transform-style: preserve-3d;
}

/* Flip card on open */
.pricing-card-interactive.opened .card-inner {
    transform: rotateY(180deg);
}

.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: var(--radius-lg);
    box-shadow: 0 15px 35px rgba(107, 15, 26, 0.15);
    overflow: hidden;
}

/* Front Face: Closed Envelope */
.card-face.closed-envelope {
    border: 4px double var(--gold-main);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 30px;
    text-align: center;
    transition: box-shadow 0.6s ease;
}

.card-face.closed-envelope.classic-envelope {
    background: radial-gradient(circle at center, #e05e1b 0%, #7a1f04 100%);
}

.card-face.closed-envelope.maharaja-envelope {
    background: radial-gradient(circle at center, #0f2a5c 0%, #050e20 100%);
    /* Royal velvet Navy Blue gradient */
}

.pricing-card-interactive:hover .card-face.closed-envelope {
    box-shadow: 0 22px 50px rgba(107, 15, 26, 0.35);
}

.envelope-inner-border {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: 1.5px solid rgba(212, 175, 55, 0.35);
    pointer-events: none;
    z-index: 1;
}

.envelope-tagline {
    color: var(--gold-light);
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 3px;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.envelope-crest {
    margin-bottom: 25px;
    z-index: 2;
    animation: gentlePulse 2.2s infinite ease-in-out;
}

.envelope-title {
    font-family: var(--font-heading);
    color: var(--gold-main) !important;
    font-size: 1.85rem;
    margin-bottom: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.envelope-subtitle {
    color: #fdfcf7;
    font-family: var(--font-body);
    font-size: 0.9rem;
    margin-bottom: 30px;
    opacity: 0.9;
    z-index: 2;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.wax-seal {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(circle, #f3e5ab 0%, #d4af37 60%, #b8860b 100%);
    border: 3px solid var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--maroon-dark);
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    z-index: 2;
}

.pricing-card-interactive:hover .wax-seal {
    transform: scale(1.15) rotate(15deg);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

/* Back Face: Open Cloth Letter Plaque */
.card-face.opened-letter {
    background-color: #fbf8f0;
    /* Soft tussar/silk cloth white */
    border: 4px double var(--gold-main);
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 45px 30px 35px;
    text-align: center;
    z-index: 2;
}

.letter-cloth-texture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.85;
    /* Elegant raw-silk grid texture */
    background-image:
        linear-gradient(90deg, rgba(212, 175, 55, 0.035) 1.5px, transparent 1.5px),
        linear-gradient(rgba(212, 175, 55, 0.035) 1.5px, transparent 1.5px);
    background-size: 4px 4px;
    z-index: 0;
}

.card-face.opened-letter * {
    z-index: 2;
    /* Keep pricing text readable above texture */
}

.card-face.opened-letter .tagline {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold-dark);
    margin-bottom: 8px;
    display: block;
}

.card-face.opened-letter h3 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--maroon-dark);
    margin-bottom: 12px;
}

.card-face.opened-letter .desc {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.4;
}

.card-face.opened-letter .features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
    text-align: left;
    width: 100%;
}

.card-face.opened-letter .features-list li {
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dark);
}

.card-face.opened-letter .features-list li i {
    color: var(--gold-main);
}

.card-face.opened-letter .features-list li i.highlight {
    color: var(--gold-main);
}

.letter-actions {
    margin-top: auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.letter-actions .btn {
    width: 100%;
    text-align: center;
}

.btn-close-letter {
    background: transparent;
    border: 1px solid rgba(107, 15, 26, 0.2);
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-close-letter:hover {
    background: rgba(107, 15, 26, 0.05);
    color: var(--maroon-dark);
    border-color: var(--maroon-main);
}

@keyframes gentlePulse {

    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 2px 4px rgba(212, 175, 55, 0.25));
    }

    50% {
        transform: scale(1.06);
        filter: drop-shadow(0 4px 10px rgba(212, 175, 55, 0.5));
    }
}

/* Mobile responsive interactive plans */
@media (max-width: 768px) {
    .pricing-container {
        flex-direction: column;
        align-items: center;
        gap: 30px;
        padding: 0 4%;
    }

    .pricing-card-interactive {
        width: 320px;
        height: 520px;
    }

    .card-face.closed-envelope {
        padding: 40px 20px;
    }

    .envelope-title {
        font-size: 1.6rem;
    }

    .envelope-tagline {
        font-size: 1.15rem;
        margin-bottom: 15px;
    }

    .envelope-crest svg {
        width: 60px;
        height: 60px;
    }

    .card-face.opened-letter {
        padding: 35px 20px 25px;
    }

    .card-face.opened-letter h3 {
        font-size: 1.9rem;
    }

    .card-face.opened-letter .features-list {
        margin-bottom: 20px;
    }
}

/* Fix popular badge clipping and add Maharaja opened letter theme overrides */
.opened-letter .popular-badge {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    display: inline-block;
    background: var(--gold-main);
    color: var(--maroon-dark);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: -10px auto 15px !important;
    align-self: center;
    box-shadow: 0 3px 8px rgba(107, 15, 26, 0.15);
}

.card-face.opened-letter.maharaja-opened-letter {
    background-color: #fafcfc;
    /* Cleaner white raw silk */
    border-color: #0f2a5c;
    /* Royal Blue outer border */
}

.maharaja-opened-letter .letter-cloth-texture {
    /* Royal Blue subtle thread texture */
    background-image:
        linear-gradient(90deg, rgba(15, 42, 92, 0.035) 1.5px, transparent 1.5px),
        linear-gradient(rgba(15, 42, 92, 0.035) 1.5px, transparent 1.5px);
}

.maharaja-opened-letter .envelope-inner-border {
    border-color: rgba(15, 42, 92, 0.25);
}

.maharaja-opened-letter .tagline.highlight {
    color: #0f2a5c !important;
}

.maharaja-opened-letter h3 {
    color: #0f2a5c !important;
    /* Royal Blue pricing text */
}

.maharaja-opened-letter .features-list li i.highlight {
    color: #0f2a5c !important;
    /* Royal Blue checkmarks */
}

.maharaja-opened-letter .btn-primary {
    background: #0f2a5c !important;
    border-color: #0f2a5c !important;
    color: var(--white) !important;
    box-shadow: 0 4px 12px rgba(15, 42, 92, 0.25) !important;
}

.maharaja-opened-letter .btn-primary:hover {
    background: #091a3a !important;
    box-shadow: 0 6px 18px rgba(15, 42, 92, 0.4) !important;
}

.maharaja-opened-letter .btn-close-letter {
    border-color: rgba(15, 42, 92, 0.25);
    color: #0f2a5c;
}

.maharaja-opened-letter .btn-close-letter:hover {
    background: rgba(15, 42, 92, 0.05);
    color: #050e20;
    border-color: #0f2a5c;
}

/* Auth Page */
.auth-section {
    padding: 150px 5% 90px;
    min-height: 100vh;
    background: radial-gradient(circle at center, var(--bg-light) 0%, var(--bg-cream) 100%);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.auth-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="70" height="70" viewBox="0 0 70 70"><g fill="none" stroke="%23d4af37" stroke-width="0.65" opacity="0.09"><path d="M35 15 L38 27 L50 31 L38 35 L35 47 L32 35 L20 31 L32 27 Z"/><circle cx="35" cy="31" r="3"/></g></svg>');
    background-size: 70px 70px;
    pointer-events: none;
    z-index: -1;
}

.auth-shell {
    max-width: 1100px;
    margin: 0 auto;
}

.auth-header {
    margin-bottom: 38px;
}

.auth-page-wrap {
    width: min(100%, 580px);
    margin: 0 auto;
}

.auth-flip-wrap {
    width: min(100%, 580px);
    min-height: 790px;
    margin: 0 auto;
    perspective: 1600px;
}

.auth-flip-card {
    position: relative;
    width: 100%;
    min-height: 790px;
    transform-style: preserve-3d;
    transition: transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-flip-card.is-login,
.auth-flip-card.is-register {
    transform: rotateY(180deg);
}

.auth-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    align-items: stretch;
}

.auth-card {
    background: var(--white);
    border: 3px double var(--gold-main);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 34px;
    position: relative;
    overflow: hidden;
}

.auth-card-face {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.auth-card-front {
    transform: rotateY(0deg);
}

.auth-card-back {
    transform: rotateY(180deg);
    pointer-events: none;
}

.auth-flip-card.is-login .auth-card-front,
.auth-flip-card.is-register .auth-card-front {
    pointer-events: none;
}

.auth-flip-card.is-login .auth-card-back,
.auth-flip-card.is-register .auth-card-back {
    pointer-events: auto;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: 1px solid rgba(212, 175, 55, 0.28);
    pointer-events: none;
}

.auth-card-dark {
    background: radial-gradient(circle at top left, #58030c 0%, #200003 100%);
    color: var(--white);
}

.auth-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
    position: relative;
    z-index: 2;
}

.auth-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.45);
    color: var(--gold-dark);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.auth-card-dark .auth-icon {
    background: rgba(243, 229, 171, 0.12);
    color: var(--gold-main);
}

.auth-card h3 {
    font-size: 1.45rem;
    margin-bottom: 3px;
}

.auth-card-dark h3 {
    color: var(--gold-light);
}

.auth-card-header p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.auth-card-dark .auth-card-header p {
    color: #f5f0e6;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: relative;
    z-index: 2;
}

.auth-form .form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--maroon-dark);
    font-weight: 700;
    font-size: 0.9rem;
}

.auth-card-dark .auth-form .form-group label {
    color: var(--gold-light);
}

.input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fdfbf7;
    border: 1.5px solid rgba(212, 175, 55, 0.35);
    border-radius: 8px;
    padding: 0 14px;
    transition: all 0.3s ease;
}

.auth-card-dark .input-wrap {
    background: rgba(255, 255, 255, 0.96);
}

.input-wrap:focus-within {
    border-color: var(--gold-main);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.14);
}

.input-wrap i {
    color: var(--gold-dark);
    width: 18px;
    text-align: center;
}

.input-wrap input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    padding: 14px 0;
    font-family: var(--font-body);
    color: var(--text-dark);
    font-size: 0.95rem;
}

.input-wrap input::placeholder {
    color: rgba(90, 74, 66, 0.65);
}

.auth-form .form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 0.9rem;
}

.check-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
}

.auth-card-dark .check-option {
    color: #f5f0e6;
}

.check-option input {
    accent-color: var(--gold-dark);
}

.auth-link {
    color: var(--gold-dark);
    font-weight: 700;
}

.auth-card-dark .auth-link {
    color: var(--gold-light);
}

.auth-btn {
    width: 100%;
    border-radius: 8px;
    margin-top: 4px;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 22px 0;
    color: var(--text-light);
    font-size: 0.88rem;
    position: relative;
    z-index: 2;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    height: 1px;
    flex: 1;
    background: rgba(212, 175, 55, 0.35);
}

.auth-card-dark .auth-divider {
    color: #f5f0e6;
}

.google-auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 48px;
    padding: 12px 18px;
    border-radius: 8px;
    border: 1.5px solid rgba(212, 175, 55, 0.5);
    background: var(--white);
    color: var(--text-dark);
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(107, 15, 26, 0.08);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.google-auth-btn i {
    color: #db4437;
}

.google-auth-btn:hover {
    transform: translateY(-2px);
    border-color: var(--gold-main);
    box-shadow: 0 12px 24px rgba(107, 15, 26, 0.12);
}

.auth-switch {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 20px;
    color: var(--text-light);
    font-size: 0.92rem;
    position: relative;
    z-index: 2;
}

.auth-card-dark .auth-switch {
    color: #f5f0e6;
}

.auth-switch-btn {
    border: none;
    background: transparent;
    color: var(--gold-dark);
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 800;
    cursor: pointer;
    padding: 4px 0;
    border-bottom: 1px solid currentColor;
}

a.auth-switch-btn {
    display: inline-block;
}

.auth-card-dark .auth-switch-btn {
    color: var(--gold-light);
}

.auth-switch-btn:hover {
    color: var(--maroon-main);
}

.auth-card-dark .auth-switch-btn:hover {
    color: var(--gold-main);
}

.field-error {
    margin-top: 7px;
    color: #f8b4b4;
    font-size: 0.84rem;
    font-weight: 600;
}

.auth-card:not(.auth-card-dark) .field-error {
    color: var(--danger);
}

.auth-alert {
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 18px;
    font-size: 0.9rem;
    font-weight: 700;
    position: relative;
    z-index: 2;
}

.auth-alert-success {
    background: rgba(40, 167, 69, 0.12);
    border: 1px solid rgba(40, 167, 69, 0.28);
    color: var(--success);
}

.auth-alert-error {
    background: rgba(220, 53, 69, 0.12);
    border: 1px solid rgba(220, 53, 69, 0.28);
    color: var(--danger);
}

.auth-card-dark .auth-alert-success {
    color: #b8f7c5;
}

.auth-card-dark .auth-alert-error {
    color: #ffd1d1;
}

.dashboard-section {
    display: flex;
    align-items: center;
}

.dashboard-card {
    width: min(100%, 560px);
    margin: 0 auto;
    background: var(--white);
    border: 3px double var(--gold-main);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 34px;
    position: relative;
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: 1px solid rgba(212, 175, 55, 0.28);
    pointer-events: none;
}

.dashboard-card form {
    position: relative;
    z-index: 2;
}

.dashboard-weddings-card {
    margin-top: 24px;
}

.dashboard-wedding-row {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 0;
    border-top: 1px solid rgba(212, 175, 55, 0.22);
}

.dashboard-wedding-row strong,
.dashboard-wedding-row span,
.dashboard-wedding-row small {
    display: block;
}

.dashboard-wedding-row strong {
    color: var(--maroon-dark);
}

.dashboard-wedding-row span,
.dashboard-wedding-row small,
.dashboard-empty-text {
    color: var(--text-light);
}

.dashboard-public-link {
    display: grid;
    gap: 6px;
    margin-top: 12px;
}

.dashboard-public-link span {
    color: var(--gold-dark);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.dashboard-public-link input {
    width: min(100%, 360px);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: var(--radius-sm);
    background: var(--bg-light);
    color: var(--maroon-dark);
    font-size: 0.9rem;
    padding: 10px 12px;
}

.dashboard-wedding-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.dashboard-wedding-actions .btn {
    padding: 10px 16px;
    font-size: 0.9rem;
}

.nav-auth-form {
    margin: 0;
}

.nav-auth-form .btn {
    font-family: var(--font-body);
}

/* AdminLTE-inspired Admin Panel */
.admin-body {
    background: var(--bg-light);
    min-height: 100vh;
    overflow-x: hidden;
}

.admin-wrapper {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    min-height: 100vh;
}

.admin-sidebar {
    background: radial-gradient(circle at top left, #58030c 0%, #200003 100%);
    color: var(--white);
    padding: 22px 18px;
    border-right: 3px double var(--gold-main);
    position: sticky;
    top: 0;
    height: 100vh;
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--gold-light);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 1px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.35);
}

.admin-brand-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--gold-main), var(--gold-dark));
    color: var(--maroon-dark);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.25);
}

.admin-user-panel {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 22px 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.25);
}

.admin-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.16);
    border: 1px solid rgba(212, 175, 55, 0.55);
    color: var(--gold-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.admin-user-panel strong,
.admin-user-panel small {
    display: block;
}

.admin-user-panel small {
    color: rgba(245, 240, 230, 0.72);
    font-size: 0.78rem;
    word-break: break-word;
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 20px;
}

.admin-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #f5f0e6;
    padding: 12px 14px;
    border-radius: 8px;
    transition: all 0.25s ease;
}

.admin-nav a:hover,
.admin-nav a.active {
    background: rgba(212, 175, 55, 0.16);
    color: var(--gold-light);
}

.admin-nav i {
    width: 18px;
    color: var(--gold-main);
}

.admin-main {
    padding: 28px;
    min-width: 0;
}

.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    background: rgba(253, 251, 247, 0.96);
    border: 1px solid rgba(212, 175, 55, 0.28);
    border-radius: 8px;
    padding: 20px 22px;
    box-shadow: var(--shadow-md);
    margin-bottom: 26px;
}

.admin-topbar h1,
.admin-panel h2 {
    margin: 0;
    color: var(--maroon-dark);
}

.admin-kicker {
    color: var(--gold-dark);
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 1px;
}

.admin-logout {
    border: none;
    border-radius: 8px;
    background: var(--maroon-main);
    color: var(--white);
    padding: 11px 16px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.admin-template-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-stat-card,
.admin-panel {
    background: var(--white);
    border: 1px solid rgba(212, 175, 55, 0.26);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

.admin-stat-card {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 22px;
    border-top: 4px solid var(--gold-main);
}

.admin-stat-card span,
.admin-stat-card small {
    display: block;
    color: var(--text-light);
}

.admin-stat-card strong {
    display: block;
    color: var(--maroon-dark);
    font-family: var(--font-heading);
    font-size: 2rem;
    line-height: 1.1;
    margin: 8px 0;
}

.admin-stat-card i {
    color: var(--gold-main);
    font-size: 2rem;
}

.admin-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(280px, 0.8fr);
    gap: 22px;
}

.admin-panel {
    padding: 22px;
}

.admin-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.admin-text-link {
    color: var(--gold-dark);
    font-weight: 800;
}

.admin-header-actions,
.admin-form-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-filter-form {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.admin-filter-form label {
    color: var(--maroon-dark);
    font-weight: 800;
    font-size: 0.85rem;
}

.admin-filter-form select {
    min-width: 165px;
    border: 1px solid rgba(212, 175, 55, 0.32);
    border-radius: 8px;
    background: var(--white);
    color: var(--maroon-dark);
    padding: 10px 12px;
    font-weight: 700;
}

.admin-action-button,
.admin-secondary-button,
.admin-danger-button {
    border: none;
    border-radius: 8px;
    padding: 11px 15px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.admin-action-button {
    background: var(--maroon-main);
    color: var(--white);
}

.admin-secondary-button {
    background: var(--bg-cream);
    border: 1px solid rgba(212, 175, 55, 0.28);
    color: var(--maroon-dark);
}

.admin-danger-button {
    background: rgba(107, 15, 26, 0.1);
    border: 1px solid rgba(107, 15, 26, 0.2);
    color: var(--maroon-main);
}

.admin-row-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    min-width: 180px;
}

.admin-row-actions form {
    margin: 0;
}

.admin-row-actions .admin-secondary-button,
.admin-row-actions .admin-danger-button {
    padding: 8px 10px;
    font-size: 0.82rem;
}

.admin-alert {
    padding: 14px 16px;
    margin-bottom: 18px;
    border-radius: 8px;
    font-weight: 800;
}

.admin-alert.success {
    background: rgba(40, 167, 69, 0.12);
    border: 1px solid rgba(40, 167, 69, 0.24);
    color: var(--success);
}

.admin-form {
    display: grid;
    gap: 20px;
}

.admin-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.admin-form-group {
    display: grid;
    gap: 8px;
}

.admin-form-group label {
    color: var(--maroon-dark);
    font-weight: 800;
}

.admin-form-group input,
.admin-form-group select,
.admin-form-group textarea {
    width: 100%;
    border: 1px solid rgba(212, 175, 55, 0.32);
    border-radius: 8px;
    background: var(--white);
    color: var(--text-dark);
    padding: 12px 13px;
    font-family: var(--font-body);
    font-size: 0.95rem;
}

.admin-form-group textarea {
    resize: vertical;
}

.admin-form-group small {
    color: var(--maroon-main);
    font-weight: 700;
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 14px 12px;
    text-align: left;
    border-bottom: 1px solid rgba(212, 175, 55, 0.18);
}

.admin-table th {
    color: var(--maroon-dark);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    text-transform: uppercase;
}

.admin-usage-cell {
    min-width: 150px;
}

.admin-usage-cell strong,
.admin-usage-cell span {
    display: block;
}

.admin-usage-cell strong {
    color: var(--maroon-dark);
}

.admin-usage-cell span {
    margin-top: 2px;
    color: var(--text-light);
    font-size: 0.82rem;
}

.admin-usage-bar {
    width: 100%;
    height: 7px;
    margin-top: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(212, 175, 55, 0.16);
}

.admin-usage-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--maroon-main), var(--gold-main));
}

.admin-template-usage-panel {
    margin-top: 24px;
}

.admin-badge {
    display: inline-flex;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 0.75rem;
    font-weight: 800;
}

.admin-badge.live {
    background: rgba(40, 167, 69, 0.12);
    color: var(--success);
}

.admin-badge.draft {
    background: rgba(212, 175, 55, 0.16);
    color: var(--gold-dark);
}

.admin-badge.review {
    background: rgba(107, 15, 26, 0.1);
    color: var(--maroon-main);
}

.admin-actions-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-actions-list a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 8px;
    background: var(--bg-cream);
    border: 1px solid rgba(212, 175, 55, 0.22);
    color: var(--maroon-dark);
    font-weight: 800;
}

.admin-actions-list i {
    color: var(--gold-dark);
}

.admin-pagination {
    margin-top: 18px;
}

.admin-pagination nav {
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 900px) {
    .auth-grid {
        grid-template-columns: 1fr;
    }

    .admin-wrapper {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: relative;
        height: auto;
    }

    .admin-stats-grid,
    .admin-content-grid {
        grid-template-columns: 1fr;
    }

    .admin-template-stats {
        grid-template-columns: 1fr;
    }

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

    .admin-filter-form,
    .admin-filter-form select {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .auth-section {
        padding: 125px 5% 70px;
    }

    .auth-card {
        padding: 26px 20px;
    }

    .auth-card h3 {
        font-size: 1.25rem;
    }

    .dashboard-wedding-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-wedding-actions,
    .dashboard-wedding-actions .btn {
        width: 100%;
    }

    .auth-flip-wrap,
    .auth-flip-card {
        min-height: 820px;
    }

    .admin-main {
        padding: 18px;
    }

    .admin-topbar {
        align-items: flex-start;
        flex-direction: column;
    }
}
