/* Sponsored Sessions Frontend Styles */

/* Make selectors more specific to avoid theme conflicts */
body .sponsored-sessions-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Institution Header */
body .institution-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #66676b 0%, #38b653 100%);
    color: white;
    border-radius: 10px;
    margin-top: 20px;
}

body .institution-header h1 {
    font-size: 2.5em;
    margin: 0 0 20px 0;
    font-weight: 300;
    color: white;
}

body .institution-logo {
    margin-bottom: 20px;
}

body .institution-logo img {
    max-width: 150px;
    height: auto;
    border-radius: 10px;
}

body .institution-description {
    font-size: 1.1em;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    color: white;
}

/* Institution Stats */
body .institution-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

body .stat-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border-left: 4px solid #66676b;
}

body .stat-label {
    display: block;
    font-size: 0.9em;
    color: #6c757d;
    margin-bottom: 5px;
    font-weight: 500;
}

body .stat-value {
    display: block;
    font-size: 2em;
    font-weight: bold;
    color: #333;
}

/* Request Form Container */
body .request-form-container {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

body .request-form-container h2 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.8em;
    text-align: center;
}

body .request-form-container p {
    color: #6c757d;
    margin-bottom: 30px;
    font-size: 1.1em;
    text-align: center;
}

/* Form Styles */
body .sponsored-sessions-form {
    max-width: 600px;
    margin: 0 auto;
}

body .form-row {
    margin-bottom: 25px;
}

body .form-row label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

body .form-row input,
body .form-row textarea,
body .form-row select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

body .form-row input:focus,
body .form-row textarea:focus,
body .form-row select:focus {
    outline: none;
    border-color: #66676b;
    box-shadow: 0 0 0 3px rgba(102, 103, 107, 0.1);
}

body .form-row textarea {
    resize: vertical;
    min-height: 100px;
}

/* Validation Styles */
body .form-row.valid input,
body .form-row.valid textarea,
body .form-row.valid select {
    border-color: #28a745;
}

body .form-row.invalid input,
body .form-row.invalid textarea,
body .form-row.invalid select {
    border-color: #dc3545;
}

/* CAPTCHA Styles */
body .captcha-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

body .captcha-code {
    background: #f8f9fa;
    padding: 12px 20px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease;
}

body .captcha-code:hover {
    background: #e9ecef;
}

body .captcha-container input {
    flex: 1;
}

/* Submit Button */
body .submit-button {
    background: #66676b;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    width: 100%;
    position: relative;
    overflow: hidden;
}

body .submit-button:before {
    width: 100%;
    height: 100%;
    content: "";
    display: block;
    background-color: #fff;
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    transition: all 0.2s;
}

body .submit-button:hover:before {
    opacity: 0.1;
}

body .submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 103, 107, 0.3);
}

body .submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Form Messages */
body .form-message {
    margin-top: 20px;
    padding: 15px 20px;
    border-radius: 6px;
    font-weight: 500;
}

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

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

/* Success Content */
body .success-content {
    text-align: center;
}

body .success-content h3 {
    color: #38b653;
    margin-bottom: 20px;
    font-size: 1.5em;
}

body .coupon-details {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid #38b653;
}

body .coupon-details p {
    margin: 10px 0;
    font-size: 1.1em;
}

body .coupon-details code {
    background: #e9ecef;
    padding: 8px 12px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

body .coupon-details code:hover {
    background: #dee2e6;
}

body .coupon-details code.copied {
    background: #38b653;
    color: white;
}

body .next-steps {
    text-align: left;
    margin: 30px 0;
}

body .next-steps h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.3em;
}

body .next-steps ol {
    padding-left: 20px;
}

body .next-steps li {
    margin-bottom: 10px;
    line-height: 1.5;
    color: #555;
}

body .action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

body .action-buttons .button {
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

body .action-buttons .button-primary {
    background: #66676b;
    color: white;
}

body .action-buttons .button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 103, 107, 0.3);
}

body .action-buttons .button {
    background: #6c757d;
    color: white;
}

body .action-buttons .button:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* No Sessions Available */
body .no-sessions-available {
    text-align: center;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px solid #e9ecef;
}

body .no-sessions-available h2 {
    color: #6c757d;
    margin-bottom: 15px;
}

body .no-sessions-available p {
    color: #6c757d;
    font-size: 1.1em;
}

/* Custom Fields */
body .checkbox-label {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    cursor: pointer;
}

body .checkbox-label input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    body .sponsored-sessions-page {
        padding: 15px;
    }
    
    body .institution-header {
        padding: 20px;
    }
    
    body .institution-header h1 {
        font-size: 2em;
    }
    
    body .institution-stats {
        grid-template-columns: 1fr;
    }
    
    body .request-form-container {
        padding: 25px;
    }
    
    body .action-buttons {
        flex-direction: column;
    }
    
    body .captcha-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    body .captcha-code {
        text-align: center;
    }
}

/* Loading States */
body .sponsored-sessions-form.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Animation for success message */
body .form-message.success {
    animation: slideInDown 0.5s ease;
}

/* Enhanced Success Message Styles */
body .success-content h3 {
    color: #28a745;
    margin-bottom: 15px;
    font-size: 1.5em;
}

body .email-notice {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    color: #856404;
}

body .coupon-box {
    background-color: #f8f9fa;
    border: 2px dashed #007cba;
    padding: 15px;
    border-radius: 8px;
    margin: 10px 0;
}

body .coupon-code {
    background-color: #007cba;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s;
}

body .coupon-code:hover {
    background-color: #005a87;
}

body .coupon-code.copied {
    background-color: #28a745;
}

body .important-notes {
    margin: 20px 0;
    text-align: left;
}

body .important-notes h4 {
    color: #495057;
    margin-bottom: 10px;
}

body .important-notes ul {
    padding-left: 20px;
}

body .important-notes li {
    margin-bottom: 8px;
    line-height: 1.5;
}

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