/* Bridge Partnership App Styles */

/* Main Form Container */

.bridge-partnership-form-container {
    width: min(100%, 860px);
    margin: 30px auto;
    padding: 36px;
    box-sizing: border-box;
    background: #ffffff;
    border: 1px solid #e3e8ee;
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(20, 42, 74, 0.08);
}

.bridge-partnership-form-container h2 {
    margin: 0 0 28px;
    padding: 0 0 14px;
    color: #17375e;
    font-size: 28px;
    line-height: 1.25;
    border-bottom: 3px solid #c8202f;
}


/* Form Layout */

.bridge-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
    width: 100%;
}

.bridge-form .bp-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    width: 100%;
}

.bridge-form .bp-form-group {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    margin: 0;
}

.bridge-form .bp-full-width {
    width: 100%;
}


/* Form Labels */

.bridge-form .bp-form-group label {
    display: block;
    margin: 0 0 8px;
    color: #17375e;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}


/* Form Inputs */

.bridge-form .bp-form-group input[type="text"],
.bridge-form .bp-form-group input[type="email"],
.bridge-form .bp-form-group input[type="tel"],
.bridge-form .bp-form-group input[type="number"],
.bridge-form .bp-form-group select,
.bridge-form .bp-form-group textarea {
    display: block;
    width: 100%;
    max-width: none;
    min-width: 0;
    margin: 0;
    padding: 11px 13px;
    box-sizing: border-box;
    color: #1f2937;
    background: #ffffff;
    border: 1px solid #bfc8d2;
    border-radius: 6px;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.5;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.bridge-form .bp-form-group input::placeholder,
.bridge-form .bp-form-group textarea::placeholder {
    color: #7b8794;
    opacity: 1;
}


/* Dropdowns */

.bridge-form .bp-form-group select {
    height: 48px;
    min-height: 48px;
    padding-top: 10px;
    padding-bottom: 10px;
}


/* Textarea */

.bridge-form .bp-form-group textarea {
    min-height: 130px;
    resize: vertical;
}


/* Focus Styles */

.bridge-form .bp-form-group input:focus,
.bridge-form .bp-form-group select:focus,
.bridge-form .bp-form-group textarea:focus {
    outline: none;
    border-color: #2878b8;
    box-shadow: 0 0 0 3px rgba(40, 120, 184, 0.14);
}


/* Conditional Other Event Field */

.bp-conditional-field[hidden] {
    display: none !important;
}

.bp-conditional-field.is-visible {
    display: flex;
}


/* Contact Checkbox */

.bridge-form .bp-checkbox-group {
    flex-direction: row;
    align-items: center;
}

.bridge-form .bp-checkbox-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    cursor: pointer;
}

.bridge-form .bp-checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
}


/* Submit Button */

.bridge-form .form-actions {
    margin-top: 2px;
}

.bridge-form .btn-submit {
    min-height: 48px;
    padding: 13px 28px;
    color: #ffffff;
    background: #c8202f;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    cursor: pointer;
    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.bridge-form .btn-submit:hover {
    background: #a81926;
    transform: translateY(-1px);
}

.bridge-form .btn-submit:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
}


/* Form Messages */

.form-message {
    display: none;
    margin-top: 4px;
    padding: 14px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.5;
}

.form-message.success {
    display: block;
    color: #155724;
    background: #d4edda;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    display: block;
    color: #721c24;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
}


/* Character Counter */

#char-counter {
    margin-top: 5px;
    color: #7b8794;
    font-size: 12px;
    text-align: right;
}


/* Partnership Listings */

.bridge-partnership-listings {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.bridge-partnership-listings h2 {
    margin: 0 0 28px;
    color: #17375e;
    font-size: 30px;
    text-align: center;
}


/* Search Filters */

.search-filters {
    margin-bottom: 30px;
    padding: 28px;
    background: #ffffff;
    border: 1px solid #e3e8ee;
    border-radius: 10px;
    box-shadow: 0 4px 18px rgba(20, 42, 74, 0.07);
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(190px, 1fr)
    );
    gap: 18px;
    margin-bottom: 20px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.filter-group label {
    margin-bottom: 8px;
    color: #17375e;
    font-size: 14px;
    font-weight: 600;
}

.filter-group input,
.filter-group select {
    width: 100%;
    height: 46px;
    min-height: 46px;
    padding: 10px 12px;
    box-sizing: border-box;
    color: #1f2937;
    background: #ffffff;
    border: 1px solid #bfc8d2;
    border-radius: 6px;
    font-family: inherit;
    font-size: 15px;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: #2878b8;
    box-shadow: 0 0 0 3px rgba(40, 120, 184, 0.14);
}

.filter-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
}

.btn-search,
.btn-reset {
    min-height: 46px;
    padding: 12px 24px;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.btn-search {
    background: #2878b8;
}

.btn-search:hover {
    background: #1f6398;
}

.btn-reset {
    background: #6c7883;
}

.btn-reset:hover {
    background: #56616a;
}


/* Partnership Results */

.partnership-results {
    margin-top: 30px;
}

.partnership-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fill,
        minmax(320px, 1fr)
    );
    gap: 24px;
}


/* Partnership Cards */

.partnership-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e3e8ee;
    border-radius: 10px;
    box-shadow: 0 3px 14px rgba(20, 42, 74, 0.08);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.partnership-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 7px 22px rgba(20, 42, 74, 0.14);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 20px;
    color: #ffffff;
    background: linear-gradient(
        135deg,
        #17375e,
        #2878b8
    );
}

.card-header h3 {
    margin: 0;
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
}

.masterpoints-badge {
    flex-shrink: 0;
    padding: 6px 12px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.22);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
}

.card-body {
    padding: 20px;
}

.card-info {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}

.card-info .label {
    min-width: 115px;
    color: #17375e;
    font-weight: 700;
}

.card-info .value {
    min-width: 0;
    color: #4b5563;
    overflow-wrap: anywhere;
}

.card-info.preferences {
    flex-direction: column;
    gap: 5px;
}

.card-info.preferences .value {
    margin: 0;
    line-height: 1.6;
}

.tournament-type,
.looking-for-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
}

.tournament-type {
    color: #8e1823;
    background: #fdebed;
}

.looking-for-badge {
    color: #175b35;
    background: #e6f5ec;
}


/* Contact Information */

.card-contact {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 2px solid #ecf0f1;
}

.card-contact h4 {
    margin: 0 0 10px;
    color: #17375e;
    font-size: 16px;
}

.card-contact p {
    margin: 5px 0;
    font-size: 14px;
}

.card-contact a {
    color: #2878b8;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.card-contact a:hover {
    text-decoration: underline;
}

.card-contact-private {
    margin-top: 20px;
    padding: 15px;
    color: #856404;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
}

.card-contact-private p {
    margin: 0;
    font-size: 13px;
}

.card-footer {
    margin-top: 15px;
    padding-top: 15px;
    text-align: right;
    border-top: 1px solid #ecf0f1;
}

.card-footer small {
    color: #7b8794;
    font-size: 12px;
}


/* Empty Results and Loading */

.no-results,
.loading {
    padding: 40px 20px;
    color: #66727e;
    background: #ffffff;
    border: 1px solid #e3e8ee;
    border-radius: 8px;
    text-align: center;
}


/* Tablet and Mobile */

@media (max-width: 700px) {
    .bridge-partnership-form-container {
        margin: 16px auto;
        padding: 22px 18px;
    }

    .bridge-partnership-form-container h2 {
        font-size: 24px;
    }

    .bridge-form .bp-form-row,
    .filter-row,
    .partnership-grid {
        grid-template-columns: 1fr;
    }

    .bridge-form .btn-submit {
        width: 100%;
    }

    .search-filters {
        padding: 22px 18px;
    }

    .card-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .filter-actions {
        flex-direction: column;
    }

    .btn-search,
    .btn-reset {
        width: 100%;
    }

    .card-info {
        flex-direction: column;
        gap: 4px;
    }

    .card-info .label {
        min-width: 0;
    }
}

.bp-contact-notice {
    padding: 14px 16px;
    color: #2b2b2b;
    background: rgba(214, 161, 29, 0.16);
    border: 1px solid #d6a11d;
    border-left: 4px solid #c8202f;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.6;
}