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

:root {
    --primary-yellow: #ffc800;
    --primary-yellow-hover: #ffdb4d;
    --dark-bg: #0a0a0a;
    --card-bg: rgba(15, 15, 15, 0.95);
    --border-color: #2a2a2a;
    --text-white: #ffffff;
    --text-gray: #888;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--dark-bg);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    padding: 20px;
    position: relative;
}

/* Dark background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(20,20,20,1) 0%, rgba(10,10,10,1) 100%);
    pointer-events: none;
    z-index: 0;
}

.container {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.portal-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 4px;
    border: 1px solid var(--border-color);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
    overflow: hidden;
}

/* Header Styles */
.header {
    padding: 40px 40px 30px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(180deg, rgba(20,20,20,1) 0%, rgba(15,15,15,1) 100%);
}

.logo {
    margin-bottom: 20px;
}

.logo-icon {
    display: inline-block;
    background: var(--primary-yellow);
    color: #000000;
    font-weight: 800;
    font-size: 20px;
    padding: 14px 28px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.header h1 {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 8px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.subtitle {
    color: var(--text-gray);
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Form Styles */
.lookup-form {
    padding: 30px 40px 40px;
}

.input-group {
    margin-bottom: 24px;
}

.input-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--primary-yellow);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    content: '▼';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    color: var(--primary-yellow);
    pointer-events: none;
}

.input-group select {
    width: 100%;
    padding: 16px 40px 16px 18px;
    border: 2px solid var(--border-color);
    border-radius: 0;
    font-size: 16px;
    font-family: 'Outfit', sans-serif;
    background: #111;
    color: var(--text-white);
    cursor: pointer;
    appearance: none;
    transition: all 0.3s ease;
}

.input-group select:focus {
    outline: none;
    border-color: var(--primary-yellow);
    background: #1a1a1a;
    box-shadow: 0 0 0 3px rgba(255, 200, 0, 0.15);
}

.input-group select option {
    background: #111;
    color: var(--text-white);
    padding: 10px;
}

.input-group input {
    width: 100%;
    padding: 16px 18px;
    border: 2px solid var(--border-color);
    border-radius: 0;
    font-size: 16px;
    font-family: 'Outfit', sans-serif;
    background: #111;
    color: var(--text-white);
    transition: all 0.3s ease;
}

.input-group input::placeholder {
    color: #555;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-yellow);
    background: #1a1a1a;
    box-shadow: 0 0 0 3px rgba(255, 200, 0, 0.15);
}

/* Primary Button - Yellow pill style like website */
.lookup-btn {
    width: 100%;
    padding: 16px 32px;
    background: transparent;
    color: var(--primary-yellow);
    border: 2px solid var(--primary-yellow);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.lookup-btn:hover:not(:disabled) {
    background: var(--primary-yellow);
    color: #000000;
}

.lookup-btn:active:not(:disabled) {
    background: var(--primary-yellow-hover);
}

.lookup-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 200, 0, 0.3);
    border-top-color: var(--primary-yellow);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Error Message */
.error-message {
    color: #ff4444;
    font-size: 14px;
    margin-top: 16px;
    padding: 14px 16px;
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.3);
    border-left: 3px solid #ff4444;
    border-radius: 0;
    display: none;
    text-align: left;
}

.error-message.show {
    display: block;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Results Section */
.results-section {
    padding: 0 40px 40px;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Member Info Section */
.member-info {
    text-align: center;
    padding: 10px 0;
}

.member-info .welcome-message {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-yellow);
    margin-bottom: 24px;
}

.member-info .info-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.member-info .info-row:last-of-type {
    border-bottom: none;
}

.results-card {
    background: #111;
    border: 1px solid var(--border-color);
    border-radius: 0;
    overflow: hidden;
}

.info-label {
    color: var(--text-gray);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-value {
    color: var(--text-white);
    font-size: 14px;
    font-weight: 500;
    text-align: right;
}

/* Booking Notice */
.booking-notice {
    margin-top: 16px;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: rgba(255, 200, 0, 0.05);
    border: 1px solid rgba(255, 200, 0, 0.2);
    border-radius: 0;
    text-align: center;
}

.notice-text {
    color: #aaa;
    font-size: 13px;
    line-height: 1.5;
}

/* FareHarbor Widget Container */
.fareharbor-container {
    margin-top: 24px;
    margin-left: -40px;
    margin-right: -40px;
    width: calc(100% + 80px);
    position: relative;
}

.fareharbor-iframe {
    width: 100%;
    height: 600px;
    border: none;
    background: #fff;
}

/* Fullscreen Button */
.fullscreen-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    margin-bottom: 0;
    background: #1a1a1a;
    color: var(--text-white);
    border: none;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.fullscreen-btn:hover {
    background: #222;
    color: var(--primary-yellow);
}

.expand-icon {
    font-size: 16px;
}

/* Fullscreen Mode */
.fareharbor-container.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    z-index: 9999;
    background: #000;
    display: flex;
    flex-direction: column;
}

.fareharbor-container.fullscreen .fullscreen-btn {
    flex-shrink: 0;
}

.fareharbor-container.fullscreen .fareharbor-iframe {
    flex: 1;
    height: 100%;
}

/* Not Found State */
.not-member {
    text-align: center;
    padding: 40px 20px;
}

.not-member-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: rgba(255, 68, 68, 0.1);
    border: 2px solid rgba(255, 68, 68, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #ff4444;
    font-weight: bold;
}

.not-member h3 {
    color: #ff4444;
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.not-member p {
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.6;
}

/* New Search Button - Yellow pill outline */
.new-search-btn {
    width: 100%;
    margin-top: 20px;
    padding: 14px 24px;
    background: transparent;
    color: var(--text-gray);
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.new-search-btn:hover {
    color: var(--primary-yellow);
    border-color: var(--primary-yellow);
}

/* Responsive */
@media (max-width: 520px) {
    .container {
        padding: 10px;
    }
    
    .header {
        padding: 30px 24px 24px;
    }
    
    .header h1 {
        font-size: 22px;
    }
    
    .lookup-form {
        padding: 24px;
    }
    
    .results-section {
        padding: 0 24px 24px;
    }
    
    .member-info .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .info-value {
        text-align: left;
    }
    
    .member-info .welcome-message {
        font-size: 24px;
    }
    
    .fareharbor-container {
        margin-left: -24px;
        margin-right: -24px;
        width: calc(100% + 48px);
    }
}
