﻿.form-section {
    margin-bottom: 12px;
    padding: 8px;
    border: 2px solid #ccc;
    border-radius: 5px;
    flex-direction: column;
    width: 100%;
    margin-top: 10px;
}

.ttable {
    display: table;
    border: 2px solid black;
    border-radius: 5px;
    width: 92%;
}

.ptable {
    display: table;
    border: 2px solid black;
    border-radius: 5px;
    width: 92%;
}

.trow {
    display: table-row;
}

.tlbl {
    display: table-cell;
    flex-direction: column;
    text-align: right;
    padding-left: 3px;
    padding-top: 2px;
    padding-bottom: 2px;
    font-size: 9px;
    font-weight: bold;
    color: darkblue;
}

.tcell {
    display: table-cell;
    flex-direction: column;
    padding-top: 2px;
    padding-bottom: 2px;
    width: 150px;
}

.prow {
    display: table-row;
    height: 15px;
    justify-content: center;
    align-content: center
}

.plbl {
    display: table-cell;
    flex-direction: column;
    text-align: right;
    padding-left: 3px;
    padding-top: 2px;
    padding-bottom: 2px;
    font-size: 9px;
    font-weight: bold;
    color: darkblue;
    margin-left: 10px;
}

.pcell {
    display: table-cell;
    flex-direction: column;
    padding-top: 2px;
    padding-bottom: 2px;
    width: 150px;
}

.pcheckbox {
    margin-left: 10px;
    color: darkblue;
}

input[type="text"] {
    border: 2px solid black;
    border-radius: 5px;
}

.button-index {
    font-family: Arial, sans-serif;
    background-color: #ff9900;
    font-size: 16px;
    font-weight: bold;
    color: black;
    border: 2px solid black;
    border-radius: 5px;
    transition: background-color 0.3s;
}

    .button-index:hover {
        background-color: #e68a00;
    }

.buttion-index:active {
    background-color: #cc7a00;
}

.trap {
    position: relative;
}

.grid-container {
    margin: 20px 0;
}

.course-grid {
    width: 100%;
    border-collapse: collapse;
}

    .course-grid th {
        background-color: #333;
        color: white;
        padding: 12px;
        text-align: left;
    }

    .course-grid td {
        padding: 10px;
        border-bottom: 1px solid #ddd;
    }

    .course-grid tr:hover {
        background-color: #f5f5f5;
        cursor: pointer;
    }


/* Profile Container */
.profile-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Hero Section - Matching HomePage */
.hero-section {
    background: linear-gradient(135deg, #ff9900 0%, #ff6600 100%);
    border-radius: 8px;
    padding: 19.5px 13.65px;
    margin-bottom: 11.7px;
    box-shadow: 0 2px 8px rgba(255, 153, 0, 0.3);
    text-align: center;
    color: white;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.welcome-text {
    font-size: 1.70625rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.tagline {
    font-size: 0.75075rem;
    opacity: 0.95;
    margin: 0;
}

/* Content Grid - Card Layout */
.content-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-bottom: 6px;
}

/* Card Styles */
.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

    .card:hover {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    }

    .card.full-width {
        grid-column: 1 / -1;
    }

/* Search and Tee Selection Cards - Ensure consistent styling */
.search-card,
.tee-card {
    grid-column: 1 / -1 !important;
    margin-top: 8px;
}

    .search-card .card-body,
    .tee-card .card-body {
        padding: 15px;
    }

.card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 3.75px 7.5px;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    gap: 5px;
}

.card-icon {
    font-size: 1.125rem;
}

.card-header h2 {
    margin: 0;
    font-size: 0.984375rem;
    color: #333;
    font-weight: 600;
}

.card-body {
    padding: 6px;
}

/* Address Grid */
.address-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 7px;
}

/* Action Bar */
.action-bar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 8px;
    gap: 4px;
}

    .action-bar.bottom {
        margin-top: 10px;
        margin-bottom: 0;
        justify-content: center;
    }

/* Form Groups */
.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 8px;
}

    .form-group.full-width {
        grid-column: 1 / -1;
    }

    .form-group label {
        font-weight: 600;
        color: #555;
        margin-bottom: 4px;
        font-size: 0.475rem;
    }

/* Alert Messages */
.alert {
    padding: 6px 7px;
    border-radius: 8px;
    margin-bottom: 7px;
    border-left: 4px solid;
    animation: slideIn 0.3s ease-out;
}

.alert-error {
    background-color: #fee;
    border-left-color: #c33;
    color: #c33;
}

@keyframes slideIn {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Form Groups */
.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 6px;
}

    .form-group.full-width {
        grid-column: 1 / -1;
    }

    .form-group label {
        font-weight: 600;
        color: #555;
        margin-bottom: 3px;
        font-size: 0.85rem;
    }

    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="tel"],
    .form-group input[type="number"],
    .form-group input[type="date"],
    .form-group select {
        padding: 4px 6px;
        border: 2px solid #e0e0e0;
        border-radius: 8px;
        font-size: 0.85rem;
        transition: all 0.3s ease;
        background: white;
        width: 25%;
        max-width: 25%;
    }

/* Specific inputs with increased widths */
input[name="Fname"],
input[name="Lname"],
input[name="Email"],
input[name="Ghinnbr1"] {
    width: 65.75% !important;
    max-width: 70% !important;
    min-width: 65% !important;
}

input[name="Mobile"] {
    width: 45.75% !important;
    max-width: 60% !important;
    min-width: 45% !important;
}

/* Birthdate with 50% increased width (37.5%) */
input[name="Birthdate"] {
    width: 37.5% !important;
    max-width: 37.5% !important;
}

/* Preferred Course with 60% total increase (42.25%) */
input[name="PrefCCName"] {
    width: 65.25% !important;
    max-width: 75.25% !important;
    min-width: 65% !important;
}

/* Addr1 and Addr2 with different widths */
input[name="Addr1"],
input[name="Addr2"]{
    width: 65% !important;
    max-width: 75% !important;
    min-width: 55% !important;
}

/* City and Zip with different widths */
input[name="City"] {
    width: 85% !important;
    max-width: 95% !important;
    min-width: 85% !important;
}

input[name="Zip"] {
    width: 37.5% !important;
    max-width: 37.5% !important;
}

        .form-group input:focus,
        .form-group select:focus {
            outline: none;
            border-color: #ff9900;
            box-shadow: 0 0 0 3px rgba(255, 153, 0, 0.1);
        }

.readonly-field {
    background-color: #f8f9fa !important;
    color: #666;
    cursor: not-allowed;
}

.highlight-value {
    font-weight: 700;
    font-size: 0.6rem;
    color: #ff9900;
}

/* Radio and Checkbox Groups */
.radio-group {
    display: flex;
    gap: 10px;
    padding: 5px 0;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    font-weight: normal;
}

    .radio-label input[type="radio"] {
        width: 10px;
        height: 10px;
    }

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    padding: 6px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: background 0.3s ease;
}

    .checkbox-label:hover {
        background: #e9ecef;
    }

    .checkbox-label input[type="checkbox"] {
        width: 10px;
        height: 10px;
        cursor: pointer;
    }

    .checkbox-label span {
        font-weight: 500;
        color: #555;
    }

/* Buttons */
.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Badges for Course and Tee Display */
.badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.badge-course {
    background: linear-gradient(135deg, #2c5f2d 0%, #1a3d1b 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 4px rgba(44, 95, 45, 0.3);
}

.badge-tee {
    background: linear-gradient(135deg, #ff9900 0%, #ff6600 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 4px rgba(255, 153, 0, 0.3);
}

.badge-empty {
    background: linear-gradient(135deg, #9e9e9e 0%, #757575 100%) !important;
    color: #ffffff !important;
    font-style: italic;
    opacity: 0.8;
}

.btn-primary {
    background: linear-gradient(135deg, #ff9900 0%, #ff6600 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 153, 0, 0.3);
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(255, 153, 0, 0.4);
    }

    .btn-primary:active {
        transform: translateY(0);
    }

.btn-large {
    padding: 16px 40px;
    font-size: 1.1rem;
}

.btn-search {
    background-color: #ff9900;
    color: black;
    font-weight: bold;
}

    .btn-search:hover {
        background-color: #e68a00;
        transform: translateY(-2px);
    }

.btn-select {
    background-color: #28a745;
    color: white;
    padding: 8px 16px;
    font-size: 0.9rem;
}

    .btn-select:hover {
        background-color: #218838;
    }

/* Search Section */
.search-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

/* Search Bar - Consistent styling for both course and tee searches */
.search-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    align-items: stretch;
}

.search-input {
    flex: 1;
    padding: 12px 16px !important;
    font-size: 0.9rem !important;
    border: 2px solid #ddd !important;
    border-radius: 8px !important;
    transition: border-color 0.3s ease;
    max-width: none !important;
    width: 100% !important;
}

    .search-input:focus {
        border-color: #ff9900 !important;
        box-shadow: 0 0 0 3px rgba(255, 153, 0, 0.1) !important;
    }

/* Field Notes - for USGA locked fields */
.field-note {
    display: block;
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 4px;
    font-style: italic;
}

/* Results Table */
.results-table-container {
    overflow-x: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

    .results-table thead {
        background: linear-gradient(135deg, #434343 0%, #000000 100%);
        color: white;
    }

    .results-table th {
        padding: 8px;
        text-align: left;
        font-weight: 600;
        font-size: 0.475rem;
    }

    .results-table td {
        padding: 8px;
        border-bottom: 1px solid #f0f0f0;
    }

    .results-table tbody tr {
        transition: background-color 0.2s ease;
    }

        .results-table tbody tr:hover {
            background-color: #f8f9fa;
        }

.no-results {
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 0.55rem;
    background: white;
    border-radius: 8px;
}

/* Tee Selection */
.tee-selection-section {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}

.tee-select {
    padding: 12px 16px !important;
    font-size: 0.9rem !important;
    cursor: pointer;
    border: 2px solid #ddd !important;
    border-radius: 8px !important;
    background: white !important;
    transition: border-color 0.3s ease;
    width: 100% !important;
    max-width: none !important;
}

    .tee-select:focus {
        border-color: #ff9900 !important;
        box-shadow: 0 0 0 3px rgba(255, 153, 0, 0.1) !important;
    }

.help-text {
    display: block;
    margin-top: 4px;
    color: #666;
    font-size: 0.45rem;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 900px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .profile-container {
        padding: 5px;
    }

    .hero-section {
        padding: 8px;
    }

    .welcome-text {
        font-size: 1.1rem;
    }

    .tagline {
        font-size: 0.5rem;
    }

    .address-grid {
        grid-template-columns: 1fr;
    }

    .search-bar {
        flex-direction: column;
    }

    .action-bar {
        justify-content: center;
    }
}
