/**
 * Parent Contact Form Styles - Updated with Yellow/Black Branding
 */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

.tbp-parent-contact-wrapper {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Poppins', sans-serif;
}

.tbp-parent-contact-container {
    max-width: 600px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 40px;
    border-top: 4px solid #f7e016;
}

/* Header */
.tbp-contact-header {
    text-align: center;
    margin-bottom: 40px;
}

.tbp-contact-header h2 {
    margin: 0 0 12px 0;
    font-size: 28px;
    font-weight: 700;
    color: #000000;
    font-family: 'Poppins', sans-serif;
}

.tbp-contact-subtitle {
    margin: 0;
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

/* Form Sections */
.tbp-form-section {
    margin-bottom: 32px;
}

.tbp-section-title {
    margin: 0 0 20px 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
    padding-bottom: 12px;
    border-bottom: 2px solid #e0e0e0;
}

/* Form Groups */
.tbp-form-group {
    margin-bottom: 24px;
}

.tbp-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
    color: #333;
}

.tbp-label.required::after {
    content: " *";
    color: #dc3545;
}

/* Input Fields */
.tbp-input,
.tbp-select {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    transition: all 0.2s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.tbp-input:focus,
.tbp-select:focus {
    outline: none;
    border-color: #f7e016;
    box-shadow: 0 0 0 3px rgba(247, 224, 22, 0.2);
}

.tbp-input.error,
.tbp-select.error {
    border-color: #dc3545;
}

.tbp-input.error:focus,
.tbp-select.error:focus {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

/* Select Dropdown */
.tbp-select {
    appearance: none;
    background-image: url('data:image/svg+xml;charset=UTF-8,%3csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3e%3cpolyline points="6 9 12 15 18 9"%3e%3c/polyline%3e%3c/svg%3e');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 40px;
}

/* Help Text */
.tbp-help-text {
    margin: 8px 0 0 0;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* Error Messages */
.tbp-error {
    display: block;
    margin-top: 6px;
    font-size: 14px;
    color: #dc3545;
    font-weight: 500;
}

/* Checkbox */
.tbp-checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 14px;
    color: #333;
}

.tbp-checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    margin-top: 2px;
    cursor: pointer;
    flex-shrink: 0;
}

.tbp-checkbox-label a {
    color: #f7e016;
    text-decoration: underline;
}

/* Info Boxes */
.tbp-info-box {
    display: flex;
    align-items: flex-start;
    padding: 16px;
    border-radius: 6px;
    margin-top: 16px;
    background-color: #fffae6;
    border-left: 4px solid #f7e016;
}

.tbp-info-box-help {
    background-color: #fff8e1;
    border-left-color: #f7e016;
}

.tbp-info-icon {
    font-size: 24px;
    margin-right: 12px;
    flex-shrink: 0;
}

.tbp-info-content {
    flex: 1;
}

.tbp-info-content p {
    margin: 0;
    font-size: 14px;
    color: #333;
    line-height: 1.6;
}

/* Buttons */
.tbp-form-actions {
    margin-top: 32px;
}

.tbp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    width: 100%;
}

.tbp-button-primary {
    background-color: #f7e016;
    color: #000000;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
}

.tbp-button-primary:hover:not(:disabled) {
    background-color: #e6d014;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(247, 224, 22, 0.4);
}

.tbp-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.tbp-button .button-loader {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
}

.tbp-button .spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 0.6s linear infinite;
}

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

/* Success Message */
.tbp-success-message {
    text-align: center;
    padding: 40px 20px;
}

.tbp-success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background-color: #d1fae5;
    color: #10b981;
    border-radius: 50%;
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 24px;
}

.tbp-success-message h3 {
    margin: 0 0 16px 0;
    font-size: 28px;
    font-weight: 600;
    color: #10b981;
}

.tbp-success-message p {
    margin: 0 0 12px 0;
    font-size: 16px;
    color: #333;
    line-height: 1.6;
}

/* Notice Boxes */
.tbp-notice {
    padding: 16px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    border-left: 4px solid;
}

.tbp-notice p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
}

.tbp-notice-error {
    background-color: #fee2e2;
    border-left-color: #dc3545;
    color: #991b1b;
}

.tbp-notice-warning {
    background-color: #fff3cd;
    border-left-color: #ffc107;
    color: #856404;
}

.tbp-notice-success {
    background-color: #d1fae5;
    border-left-color: #10b981;
    color: #065f46;
}

/* Responsive */
@media (max-width: 640px) {
    .tbp-parent-contact-container {
        padding: 24px 20px;
    }

    .tbp-contact-header h2 {
        font-size: 24px;
    }

    .tbp-contact-subtitle {
        font-size: 14px;
    }

    .tbp-section-title {
        font-size: 18px;
    }

    .tbp-button {
        padding: 12px 24px;
        font-size: 15px;
    }
}

/* Autocomplete Styles */
.tbp-autocomplete-wrapper {
    position: relative;
}

.tbp-autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 300px;
    overflow-y: auto;
    background: #ffffff;
    border: 2px solid #f7e016;
    border-top: none;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    margin-top: -2px;
}

.tbp-autocomplete-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tbp-autocomplete-item:last-child {
    border-bottom: none;
}

.tbp-autocomplete-item:hover {
    background-color: #fffae6;
}

.tbp-autocomplete-item strong {
    color: #000000;
    font-weight: 600;
}

.tbp-player-meta {
    color: #666;
    font-size: 14px;
    margin-left: 8px;
}

.tbp-autocomplete-item.tbp-no-results {
    cursor: default;
    color: #666;
    font-style: italic;
    background-color: #f9f9f9;
}

.tbp-autocomplete-item.tbp-no-results:hover {
    background-color: #f9f9f9;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tbp-info-box,
.tbp-success-message {
    animation: fadeIn 0.3s ease;
}
