/* Event Frontend Styles */

/* Fix for theme override - ensure strong/bold tags work */
.fet-event-page strong, 
.fet-event-page b,
.fet-confirmation-success strong,
.fet-confirmation-success b {
    font-weight: 700 !important;
}

/* Main Event Page Layout */
.fet-event-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.fet-event-container {
    display: flex;
    gap: 40px;
    margin: 20px 0;
}

.fet-event-content {
    flex: 0 0 70%;
}

.fet-event-sidebar {
    flex: 0 0 30%;
}

/* Event Content Styles */
.fet-event-featured-image {
    margin-bottom: 25px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.fet-featured-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.fet-featured-img:hover {
    transform: scale(1.02);
}

.fet-event-content h1 {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.2;
}

.fet-event-description {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 30px;
}

.fet-event-details {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #343b49;
    margin: 20px 0 30px 0; /* Add spacing above and below */
}

.fet-event-details p {
    margin: 10px 0;
    font-size: 16px;
}

.fet-event-details strong {
    color: #333;
    font-weight: 600;
}

/* Registration Card Styles */
.fet-registration-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 20px;
}

.fet-registration-card h3 {
    font-size: 1.5em;
    color: #333;
    margin: 0 0 15px 0;
    text-align: center;
}

.fet-registration-card p {
    color: #666;
    text-align: center;
    margin-bottom: 25px;
    font-style: italic;
}

/* Event Info in Registration Card */
.fet-event-info {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    text-align: left;
}

.fet-event-info p {
    margin: 8px 0 !important;
    font-size: 14px !important;
    color: #333 !important;
    text-align: left !important;
    font-style: normal !important;
}

.fet-event-info strong {
    color: #343b49;
    font-weight: 600;
}

.fet-register-btn {
    width: 100%;
    background: #E94E1B;
    color: white;
    border: none;
    padding: 15px 20px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.fet-register-btn:hover {
    background: #C63C12;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 115, 170, 0.3);
}

.fet-register-btn:active {
    transform: translateY(0);
}

.fet-deadline {
    font-size: 14px;
    color: #e74c3c;
    text-align: center;
    margin: 15px 0;
    font-weight: 500;
}

.fet-closed {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
    font-weight: 500;
    margin: 15px 0;
}

.fet-registration-count {
    text-align: center;
    color: #666;
    font-size: 14px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

/* Contact Organizer Styles */
.fet-contact-organizer {
    text-align: center;
    padding: 20px 0 0;
    border-top: 1px solid #eee;
    margin-top: 20px;
}

.fet-contact-text {
    color: #666;
    font-size: 14px;
    margin: 0 0 15px 0;
    font-style: italic;
}

.fet-contact-btn {
    background: transparent;
    color: #343b49;
    border: 2px solid #343b49;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fet-contact-btn:hover {
    background: #343b49;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 115, 170, 0.3);
}

/* Registration Modal Styles */
.fet-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
}

.fet-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease-out;
}

/* Contact Organizer Modal - Compact Version */
#fet-contact-modal .fet-modal-content {
    height: auto;
    max-height: 50vh;
    margin: 5% auto;
}

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

.fet-modal-content h2 {
    background: #343b49;
    color: white;
    margin: 0;
    padding: 20px 60px 20px 30px;
    border-radius: 12px 12px 0 0;
    font-size: 1.5em;
    position: relative;
}

.fet-modal-close {
    color: white;
    position: absolute;
    right: 15px;
    top: 15px;
    width: 30px;
    height: 30px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.fet-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* Registration Form Styles */
#fet-registration-form,
#fet-contact-form {
    padding: 30px;
    margin: 0;
}

.fet-form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.fet-form-group {
    flex: 1;
    margin-bottom: 20px;
}

.fet-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.fet-form-group input,
.fet-form-group textarea,
.fet-form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
    background: white;
}

.fet-form-group input::placeholder {
    color: #999;
    font-style: italic;
}

.fet-form-group input:focus,
.fet-form-group textarea:focus,
.fet-form-group select:focus {
    outline: none;
    border-color: #343b49;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.fet-form-group input[type="email"]:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.fet-form-group input[type="tel"]:focus {
    border-color: #17a2b8;
    box-shadow: 0 0 0 3px rgba(23, 162, 184, 0.1);
}

.fet-form-group select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'><path fill='%23666' d='M2 0L0 2h4zm0 5L0 3h4z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 40px;
}

.fet-form-group select:focus {
    border-color: #6f42c1;
    box-shadow: 0 0 0 3px rgba(111, 66, 193, 0.1);
}

.fet-form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.fet-submit-btn {
    width: 100%;
    background: #E94E1B;
    color: white;
    border: none;
    padding: 15px 20px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.fet-submit-btn:hover {
    background: #C63C12;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(198, 60, 18, 0.3);
}

.fet-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Success/Error Messages */
.fet-message {
    padding: 15px;
    border-radius: 6px;
    margin: 15px 0;
    font-weight: 500;
}

.fet-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.fet-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Loading State */
.fet-loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

.fet-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 50%;
    border-top-color: #343b49;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
}

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

/* Registration Confirmation Styles */
.fet-confirmation-success {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, #f8fff8 0%, #e8f5e8 100%);
    border-radius: 12px;
    border: 2px solid #28a745;
    margin: 0;
}

.fet-success-icon {
    width: 80px;
    height: 80px;
    background: #28a745;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: bold;
    margin: 0 auto 20px;
    animation: successPulse 0.6s ease-out;
}

@keyframes successPulse {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.fet-confirmation-success h3 {
    color: #155724;
    font-size: 24px;
    margin: 0 0 15px 0;
    font-weight: 700;
}

.fet-confirmation-success p {
    color: #155724;
    margin: 15px 0;
    line-height: 1.5;
}

.fet-event-title {
    font-size: 18px;
    font-weight: 600;
    color: #343b49 !important;
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #d4edda;
    margin: 20px 0 !important;
}

.fet-confirmation-details {
    background: rgba(255, 255, 255, 0.7);
    padding: 15px;
    border-radius: 6px;
    font-size: 14px;
    border: 1px solid #c3e6cb;
}

.fet-next-steps {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #d4edda;
    margin-top: 25px;
    text-align: left;
}

.fet-next-steps h4 {
    color: #155724;
    font-size: 16px;
    margin: 0 0 15px 0;
    text-align: center;
    font-weight: 600;
}

.fet-next-steps ul {
    margin: 0;
    padding-left: 20px;
    color: #155724;
}

.fet-next-steps li {
    margin: 8px 0;
    line-height: 1.4;
}

.fet-next-steps li:before {
    content: "✓ ";
    color: #28a745;
    font-weight: bold;
    margin-right: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .fet-event-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .fet-event-content,
    .fet-event-sidebar {
        flex: none;
        width: 100%;
    }
    
    .fet-registration-card {
        position: static;
        margin-bottom: 30px;
    }
    
    .fet-form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .fet-modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    #fet-registration-form {
        padding: 20px;
    }
    
    .fet-event-content h1 {
        font-size: 2em;
    }
    
    .fet-event-featured-image {
        margin-bottom: 20px;
        border-radius: 8px;
    }
    
    .fet-featured-img:hover {
        transform: none;
    }
}

@media (max-width: 480px) {
    .fet-event-page {
        padding: 15px;
    }
    
    .fet-registration-card {
        padding: 20px;
    }
    
    .fet-modal-content h2 {
        padding: 15px 20px;
        font-size: 1.3em;
    }
}
