/* =========================================================================
   BHACR Guest Accounts — Auth Pages & Account Dashboard
   ========================================================================= */

/* =========================================================================
   Login Page
   ========================================================================= */

.bhacr-auth-page {
    max-width: 450px;
    margin: 30px auto 60px;
    font-family: Arial, Helvetica, sans-serif;
}

.bhacr-auth-title {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 24pt;
    color: #3300CC;
    text-align: center;
    margin: 0 0 20px 0;
}

.bhacr-auth-message {
    background: #fce4ec;
    border: 1px solid #ef5350;
    color: #c62828;
    padding: 10px 15px;
    border-radius: 3px;
    font-size: 10pt;
    margin-bottom: 15px;
    text-align: center;
}

.bhacr-auth-message .bhacr-login-success {
    color: #2e7d32;
    background: none;
    border: none;
}

/* Style wp_login_form() output */
.bhacr-auth-form .login-username,
.bhacr-auth-form .login-password {
    margin-bottom: 15px;
}

.bhacr-auth-form label {
    display: block;
    font-size: 10pt;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.bhacr-auth-form input[type="text"],
.bhacr-auth-form input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11pt;
    box-sizing: border-box;
}

.bhacr-auth-form input[type="text"]:focus,
.bhacr-auth-form input[type="password"]:focus {
    border-color: #3300CC;
    outline: none;
    box-shadow: 0 0 3px rgba(51, 0, 204, 0.3);
}

.bhacr-auth-form .login-remember {
    margin-bottom: 15px;
}

.bhacr-auth-form .login-remember label {
    font-weight: normal;
    font-size: 10pt;
    color: #555;
}

.bhacr-auth-form input[type="submit"] {
    width: 100%;
    background-color: #3300CC;
    color: #ffffff;
    border: none;
    border-radius: 3px;
    padding: 12px 25px;
    font-size: 12pt;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.bhacr-auth-form input[type="submit"]:hover {
    background-color: #2200aa;
}

.bhacr-auth-links {
    text-align: center;
    margin-top: 15px;
    font-size: 10pt;
}

.bhacr-auth-links a {
    color: #3300CC !important;
}

.bhacr-auth-links a:hover {
    color: #FF33FF !important;
}

.bhacr-auth-sep {
    color: #ccc;
    margin: 0 8px;
}

/* =========================================================================
   My Account Page
   ========================================================================= */

.bhacr-account-page {
    max-width: 1200px;
    margin: 20px auto 60px;
    font-family: Arial, Helvetica, sans-serif;
}

.bhacr-account-header {
    margin-bottom: 20px;
}

.bhacr-account-welcome {
    font-size: 11pt;
    color: #555;
    margin: 0;
}

.bhacr-account-logout {
    font-size: 10pt;
    margin-left: 10px;
}

/* Tab navigation */
.bhacr-account-tabs {
    display: flex;
    border-bottom: 2px solid #99FFFF;
    margin-bottom: 25px;
    gap: 0;
}

.bhacr-account-tab {
    padding: 10px 24px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11pt;
    font-weight: bold;
    color: #666 !important;
    text-decoration: none !important;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s ease;
}

.bhacr-account-tab:hover {
    color: #3300CC !important;
    background: #f5f5f5;
}

.bhacr-account-tab.bhacr-tab-active {
    color: #3300CC !important;
    border-bottom-color: #3300CC;
}

/* Tab content */
.bhacr-account-content {
    min-height: 300px;
}

/* =========================================================================
   Footer Login/Register/Account Links
   ========================================================================= */

.bhacr-footer-account {
    margin-top: 6px;
}

.bhacr-footer-account a {
    color: #ffffff !important;
    text-decoration: none !important;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 9pt;
    transition: color 0.2s ease;
}

.bhacr-footer-account a:hover {
    color: #FF33FF !important;
    text-decoration: underline !important;
}

.bhacr-footer-account .bhacr-footer-sep {
    color: rgba(255, 255, 255, 0.5);
    margin: 0 6px;
    font-size: 9pt;
}

/* =========================================================================
   Preferences Form (ACF form on Account page)
   ========================================================================= */

.bhacr-preferences-form {
    max-width: 700px;
}

.bhacr-preferences-form h3 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16pt;
    color: #3300CC;
    margin: 0 0 8px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #99FFFF;
}

.bhacr-preferences-form p {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10pt;
    color: #555;
    margin: 0 0 15px 0;
}

.bhacr-success-msg {
    background: #e8f5e9;
    border: 1px solid #4caf50;
    color: #2e7d32;
    padding: 10px 15px;
    border-radius: 3px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10pt;
    margin: 10px 0;
}

/* =========================================================================
   Favorites Tab
   ========================================================================= */

.bhacr-favorites-tab h3 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16pt;
    color: #3300CC;
    margin: 0 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #99FFFF;
}

.bhacr-favorites-tab .bhacr-cottage-grid {
    max-width: 100%;
}

/* =========================================================================
   Inquiry History Tab
   ========================================================================= */

.bhacr-inquiry-history h3 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16pt;
    color: #3300CC;
    margin: 0 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #99FFFF;
}

.bhacr-history-entry {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 12px;
    background: #fafafa;
}

.bhacr-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.bhacr-history-date {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10pt;
    font-weight: bold;
    color: #333;
}

.bhacr-history-status {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 9pt;
    font-weight: bold;
    padding: 2px 10px;
    border-radius: 12px;
    text-transform: uppercase;
}

.bhacr-status-submitted,
.bhacr-status-active {
    background: #e3f2fd;
    color: #1565c0;
}

.bhacr-history-cottages,
.bhacr-history-weeks,
.bhacr-history-guests {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10pt;
    color: #444;
    margin: 4px 0;
}

.bhacr-history-week-group {
    margin-left: 10px;
}

/* =========================================================================
   Responsive
   ========================================================================= */

@media (max-width: 768px) {
    .bhacr-account-tabs {
        flex-direction: column;
    }

    .bhacr-account-tab {
        border-bottom: none;
        border-left: 3px solid transparent;
        margin-bottom: 0;
    }

    .bhacr-account-tab.bhacr-tab-active {
        border-bottom: none;
        border-left-color: #3300CC;
    }
}

/* =========================================================================
   Guest Dashboard (My Account home)
   ========================================================================= */

.bhacr-dashboard {
    max-width: 1200px;
    margin: 20px auto 60px;
    font-family: Arial, Helvetica, sans-serif;
}

/* Welcome Banner */
.bhacr-dash-welcome {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    padding: 28px 32px;
    background: linear-gradient(135deg, #3300CC 0%, #000099 100%);
    border-radius: 10px;
    color: #ffffff;
}

.bhacr-dash-welcome h1 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 22pt;
    color: #ffffff;
    margin: 0 0 4px 0;
    line-height: 1.2;
}

.bhacr-dash-welcome p {
    font-size: 11pt;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

.bhacr-dash-logout {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none !important;
    font-size: 10pt;
    padding: 6px 16px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    transition: all 0.2s ease;
    white-space: nowrap;
    margin-top: 4px;
}

.bhacr-dash-logout:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.7);
    color: #ffffff !important;
}

/* Upcoming Reservation Banner */
.bhacr-dash-upcoming {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
    border-left: 4px solid #4caf50;
    border-radius: 6px;
    margin-bottom: 24px;
}

.bhacr-dash-upcoming-icon {
    color: #4caf50;
    flex-shrink: 0;
}

.bhacr-dash-upcoming-info {
    flex: 1;
    font-size: 10.5pt;
    color: #333;
}

.bhacr-dash-upcoming-info strong {
    display: block;
    font-size: 10pt;
    color: #2e7d32;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.bhacr-dash-upcoming-link {
    font-size: 10pt;
    font-weight: bold;
    color: #2e7d32 !important;
    text-decoration: none !important;
    white-space: nowrap;
    transition: color 0.2s;
}

.bhacr-dash-upcoming-link:hover {
    color: #1b5e20 !important;
    text-decoration: underline !important;
}

/* Quick Actions Grid */
.bhacr-dash-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.bhacr-dash-action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 20px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    text-decoration: none !important;
    transition: all 0.2s ease;
    cursor: pointer;
}

.bhacr-dash-action-card:hover {
    border-color: #3300CC;
    box-shadow: 0 4px 12px rgba(51, 0, 204, 0.1);
    transform: translateY(-2px);
}

.bhacr-dash-action-card.bhacr-dash-action-highlight {
    border-color: #99FFFF;
    background: linear-gradient(180deg, #f0feff 0%, #ffffff 100%);
}

.bhacr-dash-action-icon {
    color: #3300CC;
    margin-bottom: 12px;
}

.bhacr-dash-action-card h3 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12pt;
    font-weight: bold;
    color: #222;
    margin: 0 0 6px 0;
}

.bhacr-dash-action-card p {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 9pt;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

/* Stats Summary */
.bhacr-dash-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.bhacr-dash-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    text-decoration: none !important;
    transition: border-color 0.2s;
}

.bhacr-dash-stat:hover {
    border-color: #3300CC;
}

.bhacr-dash-stat-number {
    font-size: 28pt;
    font-weight: bold;
    color: #3300CC;
    line-height: 1;
}

.bhacr-dash-stat-label {
    font-size: 10pt;
    color: #666;
    margin-top: 4px;
}

/* Contact Info */
.bhacr-dash-contact {
    text-align: center;
    padding: 16px;
    color: #666;
    font-size: 10pt;
}

.bhacr-dash-contact a {
    color: #3300CC !important;
    font-weight: bold;
}

.bhacr-dash-contact a:hover {
    color: #FF33FF !important;
}

/* Back to Dashboard link */
.bhacr-dash-back {
    color: #3300CC !important;
    text-decoration: none !important;
    font-size: 10pt;
    font-weight: bold;
    margin-right: 15px;
}

.bhacr-dash-back:hover {
    color: #FF33FF !important;
}

/* Tab icons */
.bhacr-account-tab {
    display: flex;
    align-items: center;
    gap: 6px;
}

.bhacr-account-tab svg {
    flex-shrink: 0;
}

/* =========================================================================
   Dashboard Responsive
   ========================================================================= */

@media (max-width: 900px) {
    .bhacr-dash-actions {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .bhacr-dash-welcome {
        flex-direction: column;
        gap: 12px;
        padding: 20px 24px;
    }

    .bhacr-dash-welcome h1 {
        font-size: 18pt;
    }

    .bhacr-dash-upcoming {
        flex-direction: column;
        text-align: center;
    }

    .bhacr-dash-actions {
        grid-template-columns: 1fr;
    }

    .bhacr-dash-stats {
        flex-direction: column;
    }

    .bhacr-dash-stat {
        flex-direction: row;
        gap: 12px;
        justify-content: center;
    }

    .bhacr-dash-stat-number {
        font-size: 22pt;
    }
}

/* =========================================================================
   Welcome Banner Actions (settings + logout)
   ========================================================================= */

.bhacr-dash-welcome-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.bhacr-dash-settings-link {
    display: flex;
    align-items: center;
    gap: 5px;
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none !important;
    font-size: 10pt;
    padding: 6px 16px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.bhacr-dash-settings-link:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.7);
    color: #ffffff !important;
}

.bhacr-dash-settings-link svg {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .bhacr-dash-welcome-actions {
        flex-direction: row;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .bhacr-dash-welcome-actions {
        flex-wrap: wrap;
    }
}

/* =========================================================================
   Account Settings Tab
   ========================================================================= */

.bhacr-account-settings {
    padding: 8px 0;
}

.bhacr-account-settings h3 {
    color: #3300CC;
    margin-bottom: 6px;
}

.bhacr-account-settings > p {
    color: #555;
    margin-bottom: 20px;
    font-size: 14px;
}

.bhacr-account-settings h4 {
    color: #333;
    margin: 0 0 8px 0;
    font-size: 14pt;
}

.bhacr-settings-form {
    max-width: 600px;
}

.bhacr-form-row {
    margin-bottom: 18px;
}

.bhacr-form-row-half {
    display: flex;
    gap: 16px;
}

.bhacr-form-row-half .bhacr-form-field {
    flex: 1;
}

.bhacr-form-field label {
    display: block;
    font-size: 10.5pt;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.bhacr-form-field input[type="text"],
.bhacr-form-field input[type="email"],
.bhacr-form-field input[type="password"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 10.5pt;
    font-family: Arial, Helvetica, sans-serif;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.bhacr-form-field input[type="text"]:focus,
.bhacr-form-field input[type="email"]:focus,
.bhacr-form-field input[type="password"]:focus {
    border-color: #3300CC;
    outline: none;
    box-shadow: 0 0 0 2px rgba(51, 0, 204, 0.1);
}

.bhacr-field-hint {
    font-size: 9pt;
    color: #888;
    margin: 4px 0 0 0;
}

.bhacr-form-divider {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 28px 0 20px;
}

.bhacr-account-info-box {
    margin-top: 28px;
    padding: 14px 18px;
    background: #f5f5f5;
    border-radius: 6px;
    font-size: 10pt;
    color: #555;
    max-width: 600px;
}

.bhacr-account-info-box strong {
    color: #333;
}

.bhacr-account-info-box .bhacr-field-hint {
    margin-top: 2px;
}

.bhacr-error-msg {
    background: #fce4ec;
    border: 1px solid #ef9a9a;
    color: #c62828;
    padding: 12px 18px;
    border-radius: 6px;
    margin-bottom: 18px;
    font-size: 10pt;
}

.bhacr-error-msg p {
    margin: 0 0 4px 0;
}

.bhacr-error-msg p:last-child {
    margin-bottom: 0;
}

@media (max-width: 600px) {
    .bhacr-form-row-half {
        flex-direction: column;
        gap: 0;
    }

    .bhacr-settings-form {
        max-width: 100%;
    }
}

/* =========================================================================
   Documents Tab
   ========================================================================= */

.bhacr-documents-tab { padding: 8px 0; }
.bhacr-documents-tab h3 { color: #3300CC; margin-bottom: 6px; }
.bhacr-documents-tab > p { color: #555; margin-bottom: 20px; font-size: 14px; }

.bhacr-doc-card {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 16px 20px;
    margin-bottom: 16px;
    background: #fff;
}
.bhacr-doc-card.bhacr-doc-upcoming { border-left: 4px solid #3300CC; }
.bhacr-doc-card.bhacr-doc-past     { border-left: 4px solid #bbb; opacity: 0.8; }

.bhacr-doc-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.bhacr-doc-card-header strong { font-size: 16px; color: #222; }
.bhacr-doc-dates { color: #555; font-size: 13px; }
.bhacr-doc-status {
    font-size: 11px;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 3px;
    margin-left: auto;
}
.bhacr-status-upcoming { background: #e8eaf6; color: #3300CC; }
.bhacr-status-past     { background: #f0f0f0; color: #777; }

.bhacr-doc-files {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.bhacr-doc-download-btn {
    display: inline-block;
    background: #3300CC;
    color: #fff !important;
    text-decoration: none !important;
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    transition: background 0.2s;
}
.bhacr-doc-download-btn:hover { background: #2200aa; }

.bhacr-doc-resend-btn {
    background: none;
    border: 1px solid #3300CC;
    color: #3300CC;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.bhacr-doc-resend-btn:hover:not(:disabled) { background: #f0eeff; }
.bhacr-doc-resend-btn:disabled { opacity: 0.6; cursor: default; }

.bhacr-doc-resend-msg { font-size: 13px; font-weight: bold; margin-left: 6px; }
.bhacr-doc-pending    { font-size: 13px; color: #777; margin: 0; }
