/* Define color variables (Consistent) */
:root {
    --bg-color: #FDF8F5;
    --text-color: #4A4A4A;
    --heading-color: #8B735B;
    --accent-color: #B58D7B;
    --subtle-accent: #C8A2A3;
    --white-color: #ffffff;
    --border-color: #EAE0DC;
    --card-bg-color: var(--white-color); /* Background for details box */
}

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

/* === MOBILE FIRST STYLES === */
body {
    font-family: 'Lato', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.8; /* Generous line height for readability */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 16px;
}

.container {
    width: 90%;
    max-width: 800px; /* Suitable max-width for text content */
    margin: 0 auto;
    padding: 0 15px;
}

/* Page Heading */
.page-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.8em;
    color: var(--heading-color);
    text-align: center;
    margin: 40px 0 30px 0;
    font-weight: 700;
}

/* Intro/Outro Paragraphs */
.gift-page-text {
    font-size: 1.05em; /* Slightly larger for emphasis */
    color: var(--text-color);
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.7;
}
.gift-page-text.outro {
    margin-top: 40px;
    font-size: 1em;
}

/* Section for Bank Details */
.bank-details-section {
    background-color: var(--card-bg-color);
    padding: 25px 20px; /* Mobile padding */
    border-radius: 8px;
    margin: 30px 0;
    border: 1px solid var(--border-color);
    box-shadow: 0 3px 8px rgba(0,0,0,0.04);
}

.bank-details-section h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5em; /* Mobile size */
    color: var(--accent-color);
    text-align: center;
    margin-bottom: 25px;
    font-weight: 700;
}

.bank-details-section p {
    font-size: 1.05em; /* Clear font size for details */
    color: var(--text-color);
    margin-bottom: 15px;
    line-height: 1.6;
    text-align: center; /* Center details */
}

.copy-btn {
    display: inline-flex; /* Align icon and text */
    align-items: center;
    gap: 5px; /* Space between icon and text */
    background-color: var(--border-color); /* Subtle background */
    color: var(--text-color);
    border: none;
    padding: 4px 10px; /* Smaller padding */
    font-size: 0.85em; /* Smaller font size */
    border-radius: 4px;
    cursor: pointer;
    margin-left: 10px; /* Space from account number */
    vertical-align: middle; /* Align nicely with text */
    transition: background-color 0.2s ease, color 0.2s ease;
}

.copy-btn svg {
    display: inline-block;
    vertical-align: middle; /* Helps align SVG */
}

.copy-btn:hover {
    background-color: var(--subtle-accent); /* Use subtle accent on hover */
    color: var(--white-color);
}
.copy-btn:hover svg {
    fill: var(--white-color);
}


/* Style for feedback after copying */
.copy-btn.copied {
    background-color: var(--heading-color); /* Change background to indicate success */
    color: var(--white-color);
}
.copy-btn.copied svg {
    display: none; /* Hide icon when showing 'Copied!' */
}

.bank-details-section strong {
    font-weight: 700;
    color: var(--heading-color); /* Make labels stand out */
    display: block; /* Put label on its own line */
    margin-bottom: 3px; /* Space between label and detail */
    font-size: 0.9em; /* Slightly smaller label */
    text-transform: uppercase; /* Optional: Uppercase labels */
    letter-spacing: 0.5px; /* Optional spacing */
}

/* Optional Section for Other Registries */
.other-registry-section {
    margin-top: 40px;
    text-align: center;
}
.other-registry-section h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4em;
    color: var(--accent-color);
    margin-bottom: 15px;
    font-weight: 700;
}
.other-registry-section p {
    margin-bottom: 15px;
}
.other-registry-section a {
    color: var(--subtle-accent); /* Use subtle accent for links */
    text-decoration: underline;
    font-weight: 700;
    transition: color 0.3s ease;
}
.other-registry-section a:hover {
    color: var(--heading-color);
}


/* === TABLET & DESKTOP STYLES (min-width: 768px) === */
@media (min-width: 480px) {
    .container { width: 85%; }
    .page-title { font-size: 3.5em; margin: 60px 0 50px 0; }
    .gift-page-text { font-size: 1.1em; }
    .gift-page-text.outro { font-size: 1.05em; margin-top: 50px; }

    .bank-details-section {
        padding: 40px 50px; /* More padding */
        margin: 40px 0;
    }
    .bank-details-section h3 { font-size: 1.7em; margin-bottom: 30px; }
    .bank-details-section p { font-size: 1.1em; }

    .other-registry-section h3 { font-size: 1.5em; }
}

/* === LARGER DESKTOP STYLES (min-width: 1024px) === */
@media (min-width: 1024px) {
    .container { width: 75%; } /* Constrain text width more */
    .page-title { font-size: 3.8em; }
    .gift-page-text { font-size: 1.15em; }
}
