/* formatter_styles.css */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Playfair+Display:wght@400;700&display=swap');

/* Reset and Basic Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
    background-color: #FFFBF7; /* Soft cream background */
    color: #4A4A4A; /* Dark warm gray text */
    padding: 20px;
    font-size: 16px;
}

.container {
    max-width: 900px;
    margin: 30px auto;
    padding: 30px;
    background-color: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    color: #5D9C9C; /* Muted Teal */
    margin-bottom: 0.75em;
    line-height: 1.3;
}

h1 {
    text-align: center;
    font-size: 2.8em;
    margin-top: 0; 
    margin-bottom: 1em;
}

h2 {
    font-size: 2em;
    border-bottom: 2px solid #E6A474; 
    padding-bottom: 0.3em;
    margin-top: 1.5em;
}

h3 {
    font-size: 1.6em;
    color: #4A5C5C; 
    margin-top: 1.2em;
}

p, li, label {
    margin-bottom: 0.8em;
    font-size: 1.05em;
}

a {
    color: #5D9C9C;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover, a:focus {
    color: #E6A474;
    text-decoration: underline;
}

/* --- Navigation --- */
.site-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #E0E0E0;
}

.site-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5em;
    color: #4A4A4A;
    text-decoration: none;
    margin-bottom: 10px;
    display: block;
}

.site-nav a {
    margin: 0 15px;
    font-size: 1.1em;
    font-weight: bold;
}

/* User Feedback/Service Section */
.user-feedback-section {
    background-color: #F0F7F7; 
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 30px; 
    text-align: center;
    border: 1px solid #D0E0E0;
}

.user-feedback-section p {
    margin-bottom: 0.75em;
    font-size: 0.95em;
    color: #4A5C5C; 
    line-height: 1.5;
}

.user-feedback-section p:last-child {
    margin-bottom: 0;
}

.user-feedback-section a {
    color: #5D9C9C; 
    font-weight: bold;
}

.user-feedback-section a:hover {
    color: #E6A474; 
}

/* --- Form Layout Wrappers --- */
.form-row {
    display: flex;
    flex-wrap: wrap; 
    gap: 20px; 
    margin-bottom: 30px; 
}

.form-row > .form-section {
    flex: 1; 
    min-width: 280px; 
    margin-bottom: 0; 
}


/* --- Form Sections (Formatter Tool - index.html) --- */
.form-section {
    margin-bottom: 30px; 
    padding: 20px;
    background-color: #FDFBF9; 
    border: 1px solid #EDE7E0;
    border-radius: 8px;
}

.form-section > label { 
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #5D9C9C;
    font-size: 1.1em;
}

.guest-details {
    padding: 15px;
    border: 1px dashed #DDCDBE; 
    border-radius: 6px;
    margin-top: 10px;
}
.guest-details h3 {
    font-size: 1.4em;
    color: #5D9C9C;
    border-bottom: 1px solid #E6A474;
    padding-bottom: 0.4em;
    margin-top: 0;
    margin-bottom: 20px;
}

.input-group {
    margin-bottom: 15px;
    position: relative; 
}

.input-group label { 
    display: block;
    margin-bottom: 5px;
    font-weight: normal;
    color: #4A4A4A;
    font-size: 0.95em;
}

input[type="text"], select {
    width: 100%;
    padding: 12px;
    border: 1px solid #DDCDBE;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 1em;
    font-family: 'Lato', sans-serif;
    background-color: #fff;
}

input[type="text"]:focus, select:focus {
    border-color: #5D9C9C;
    outline: none;
    box-shadow: 0 0 0 2px rgba(93, 156, 156, 0.2);
}

.name-fields-inline-group {
    display: flex;
    flex-wrap: wrap; 
    gap: 15px;
    margin-bottom: 0; 
}

.name-fields-inline-group .input-group {
    flex: 1 1 100%; 
}

/* Bubble Selections */
.selection-bubble-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 5px; 
}

.selection-bubble-group label { 
    padding: 10px 18px;
    border: 1px solid #E6A474;
    border-radius: 25px;
    cursor: pointer;
    font-weight: normal;
    color: #E6A474;
    background-color: #FFFBF7;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
    margin-bottom: 0;
    font-size: 0.95em;
}

.selection-bubble-group input[type="radio"],
.selection-bubble-group input[type="checkbox"] {
    display: none;
}

.selection-bubble-group input[type="radio"]:checked + label,
.selection-bubble-group input[type="checkbox"]:checked + label {
    background-color: #5D9C9C;
    color: #FFFFFF;
    border-color: #5D9C9C;
    font-weight: bold;
}

/* Tooltip Styles */
.tooltip-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-color: #5D9C9C;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 12px;
    line-height: 16px;
    cursor: help;
    margin-left: 5px;
    font-style: normal;
    font-weight: bold;
}

.tooltip-text {
    visibility: hidden;
    width: 220px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%; 
    left: 50%;
    margin-left: -110px; 
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.85em;
    line-height: 1.4;
}

.input-group:hover .tooltip-text,
.input-group:focus-within .tooltip-text { 
    visibility: visible;
    opacity: 1;
}


/* Main Action Buttons Area */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 20px; 
    margin: 40px auto 30px auto;
    flex-wrap: wrap;
}

#formatNameButton, #resetFormButton {
    width: auto;
    min-width: 200px; 
    padding: 15px 30px;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease;
    font-family: 'Lato', sans-serif;
}
#formatNameButton {
    background-color: #5D9C9C; 
}
#resetFormButton {
    background-color: #B0AFAF; 
}

#formatNameButton:hover, #formatNameButton:focus {
    background-color: #4A7C7C; 
}
#resetFormButton:hover, #resetFormButton:focus {
    background-color: #908F8F; 
}


/* Output Area */
#formattedNameResultContainer {
    margin-top: 30px;
    padding: 25px;
    background-color: #F0F7F7; 
    border: 1px solid #D0E0E0;
    border-radius: 8px;
}

.output-line-container {
    margin-bottom: 15px;
    padding: 15px;
    border: 1px solid #C0D0D0;
    border-radius: 6px;
    background-color: #FFFFFF;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.output-line-container:last-child {
    margin-bottom: 0;
}

.output-label {
    font-weight: bold;
    color: #5D9C9C;
    font-size: 1.05em;
}
.formatted-name {
    font-size: 1.1em;
    color: #4A4A4A;
    word-wrap: break-word;
    flex-grow: 1;
}

.copy-button, #copyAllButton {
    background-color: #E6A474; 
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
    font-family: 'Lato', sans-serif;
}
.copy-button:hover, .copy-button:focus,
#copyAllButton:hover, #copyAllButton:focus {
    background-color: #D98B54; 
}
#copyAllButton {
    display: block;
    margin: 20px auto 0 auto;
    font-size: 1em;
}

.error-message {
    color: #D8000C; 
    background-color: #FFD2D2;
    border: 1px solid #D8000C;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    text-align: center;
}


/* --- Guide Page Specific Styles (guide.html) --- */
.guide-intro p {
    font-size: 1.1em;
    margin-bottom: 1.5em;
    color: #5a5a5a;
}

.guide-toc {
    background-color: #FDFBF9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid #EDE7E0;
}
.guide-toc h3 {
    margin-top: 0;
    color: #5D9C9C;
}
.guide-toc ul {
    list-style: none;
    padding-left: 0;
}
.guide-toc ul ul { 
    padding-left: 20px; 
    margin-top: 5px;
}
.guide-toc li a {
    display: block;
    padding: 8px 0;
    border-bottom: 1px dotted #E0E0E0;
    font-size: 1.05em;
}
.guide-toc li:last-child a {
    border-bottom: none;
}

.guide-section { 
    margin-bottom: 40px;
}

.guide-section .example { 
    background-color: #F9F9F9;
    border-left: 4px solid #5D9C9C;
    padding: 15px;
    margin: 15px 0;
    border-radius: 0 4px 4px 0;
}
.guide-section .example p {
    margin-bottom: 0.5em;
    font-family: 'Courier New', Courier, monospace; 
    font-size: 1em;
    line-height: 1.4;
}
.guide-section .example p strong { 
    font-family: 'Lato', sans-serif;
    font-weight: bold;
    color: #4A5C5C;
}
.guide-section .example p em { 
    font-family: 'Lato', sans-serif;
    color: #777;
    font-size: 0.9em;
    display: block;
    margin-top: 0.2em;
}

.guide-note {
    font-style: italic;
    color: #5D9C9C; 
    background-color: #F0F7F7; 
    padding: 10px 15px;
    border-left: 3px solid #E6A474; 
    margin: 1em 0;
    border-radius: 4px;
    font-size: 1em !important; 
}

/* --- Styles for the Form on format-my-list.html --- */
.intake-form-section {
    margin-bottom: 25px;
}

.intake-form-section label, /* For the main label of a section */
.intake-form-section .form-field-label { /* For labels directly above input/textarea */
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #5D9C9C;
    font-size: 1.1em;
}

.intake-form-section .selection-bubble-group label { 
    font-size: 0.9em; 
    padding: 8px 15px;
}

.intake-form-section textarea,
.intake-form-section input[type="email"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #DDCDBE;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 1em;
    font-family: 'Lato', sans-serif;
    background-color: #fff;
    margin-bottom: 10px; 
}

.intake-form-section textarea {
    min-height: 100px;
    resize: vertical;
}

.intake-form-section input[type="email"]:focus,
.intake-form-section textarea:focus {
    border-color: #5D9C9C;
    outline: none;
    box-shadow: 0 0 0 2px rgba(93, 156, 156, 0.2);
}

.submit-button { 
    display: block;
    width: auto;
    min-width: 220px;
    padding: 15px 30px;
    background-color: #5D9C9C; 
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 30px auto 20px auto;
    transition: background-color 0.3s ease;
    font-family: 'Lato', sans-serif;
}

.submit-button:hover, .submit-button:focus {
    background-color: #4A7C7C; 
}

#format-my-list-page .user-feedback-section { /* If you were to reuse this class here */
    margin-top: 20px;
    background-color: transparent; 
    border: none;
    padding: 0;
}


/* --- Footer --- */
.site-footer {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #E0E0E0;
    font-size: 0.9em;
    color: #777;
}
.site-footer p {
    margin-bottom: 0.5em; 
}

.social-link-container {
    margin-top: 10px; 
    margin-bottom: 10px; /* Added margin below social link */
}

.social-link {
  display: inline-flex;
  align-items: center; 
  text-decoration: none;
  color: #5D9C9C; 
  font-size: 1em; 
}

.social-link:hover, .social-link:focus {
  color: #E6A474; 
  text-decoration: underline;
}

.social-icon {
  width: 20px; 
  height: 20px;
  margin-right: 8px;
  fill: currentColor; 
}


/* --- Responsive Design --- */
@media (min-width: 769px) { 
    .name-fields-inline-group .input-group {
        flex: 1 1 calc(33.333% - 10px); 
    }
     .form-row > .form-section {
        min-width: calc(50% - 10px); 
    }
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    .container {
        padding: 20px;
        margin: 15px auto;
    }
    h1 { font-size: 2.2em; }
    h2 { font-size: 1.7em; }
    h3 { font-size: 1.4em; }

    .form-row {
        flex-direction: column; 
        gap: 0;
    }
    .form-row > .form-section {
        margin-bottom: 20px; 
    }

    .name-fields-inline-group {
        flex-direction: column;
        gap: 0; 
    }
    .name-fields-inline-group .input-group {
        margin-bottom: 15px; 
        flex-basis: 100%; 
    }
    .selection-bubble-group label {
        padding: 8px 12px;
        font-size: 0.9em;
    }
    .output-line-container {
        flex-direction: column;
        align-items: flex-start;
    }
    .formatted-name {
        margin-bottom: 8px;
    }
    .copy-button, #copyAllButton {
        width: 100%;
        margin-top: 5px;
    }
    #formatNameButton, #resetFormButton, .submit-button { /* Added .submit-button here */
        min-width: 100%; 
        margin-left: 0;
        margin-right: 0;
    }
    .action-buttons {
        flex-direction: column; 
        gap: 10px;
    }
    .site-nav a {
        display: block;
        margin: 10px 0;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 1.8em; }
    h2 { font-size: 1.5em; }
    h3 { font-size: 1.2em; }
    p, li, label, input[type="text"], select { font-size: 0.95em; }
    .site-title { font-size: 2em; }
}