/* Subscribe page styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    background-color: #F3F2EC;
    line-height: 1.6;
    /* user-select: none; */
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Main content layout */
.main-content {
    flex: 1;
    background-color: #f5f5f5;
}

.content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 20px;
    padding: 20px;
    align-items: stretch;
}

/* Left sidebar */
.left-sidebar {
    width: 270px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

/* Upcoming Conferences Sidebar */
.upcoming-conferences-sidebar {
    background-color: white;
    border: 1px solid #ddd;
    padding: 15px;
    flex: 1;
}

.upcoming-conferences-sidebar h2 {
    font-size: 16px;
    font-weight: bold;
    color: #003366;
    margin-bottom: 15px;
    border-bottom: 2px solid #003366;
    padding-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.upcoming-conferences-sidebar h2 i {
    color: #003366;
}

.conferences-list {
    margin-bottom: 20px;
}

.conference-item {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 12px;
    background-color: #fafafa;
    transition: all 0.3s ease;
}

.conference-item:hover {
    border-color: #003366;
    background-color: #f0f8ff;
    box-shadow: 0 2px 8px rgba(0, 51, 102, 0.1);
}

.conference-title {
    margin-bottom: 8px;
}

.conference-link {
    color: #003366;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1.3;
}

.conference-link:hover {
    color: #0066cc;
    text-decoration: underline;
}

.conference-link i {
    color: #003366;
    font-size: 12px;
}

.conference-details {
    font-size: 12px;
    color: #666;
}

.conference-date,
.conference-location {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 4px;
}

.conference-date i,
.conference-location i {
    color: #003366;
    font-size: 11px;
    width: 12px;
}

.no-events {
    text-align: center;
    padding: 30px 20px;
    color: #666;
}

.no-events p {
    margin-bottom: 8px;
    font-size: 14px;
}

/* Main area */
.main-area {
    flex: 1;
    min-width: 0;
}

.subscribe-container {
    max-width: 100%;
    margin: 0;
    padding: 0;
    background: linear-gradient(to right, #eaebec, #f7f7f7);
    border-radius: 8px;
}

.subscribe-header {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    padding: 20px 20px 0 20px;
}

.subscribe-alert-btn {
    background: linear-gradient(#cc2a1f, #c32321, #ad1226);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.subscribe-alert-btn:hover {
    background-color: #c82333;
}

.add-detail-btn {
    background: linear-gradient(#589dda, #1b588c, #0c4980);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.add-detail-btn:hover {
    background-color: #0056b3;
}

.subscribe-form-container {
    background-color: white;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.029);
    margin: 0 20px 20px 20px;
}

.subscribe-form {
    max-width: 800px;
}

.form-row {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 20px;
}

.form-row label {
    min-width: 180px;
    font-weight: 500;
    color: #333;
    text-align: left;
}

.required {
    color: #dc3545;
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row select {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background-color: white;
}

.form-row input:focus,
.form-row select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.phone-row .phone-input {
    display: flex;
    gap: 10px;
    flex: 1;
}

.phone-input select {
    min-width: 120px;
    flex: 0 0 120px;
}

.phone-input input {
    flex: 1;
}

.country-row .country-selects {
    display: flex;
    gap: 10px;
    flex: 1;
}

.country-selects select {
    flex: 1;
}

.form-submit {
    margin-top: 30px;
    text-align: left;
}

.submit-btn {
    background: linear-gradient(#589dda, #1b588c, #0c4980);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #0056b3;
}

/* Topics container and checkboxes */
.topics-container {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    background-color: #f8f9fa;
    min-height: 60px;
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.topic-checkbox {
    display: flex;
    align-items: center;
    padding: 8px;
    border-radius: 4px;
    background-color: white;
    transition: background-color 0.2s ease;
    border: 1px solid #e9ecef;
}

.topic-checkbox:hover {
    background-color: #e9ecef;
    border-color: #007bff;
}

.topic-checkbox input[type="checkbox"] {
    margin-right: 8px;
    transform: scale(1.1);
    cursor: pointer;
}

.topic-checkbox label {
    cursor: pointer;
    font-weight: 500;
    color: #333;
    margin: 0;
    flex: 1;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Loading and error states */
.loading {
    text-align: center;
    padding: 20px;
    color: #666;
    font-style: italic;
}

.no-topics {
    text-align: center;
    padding: 20px;
    color: #666;
    font-style: italic;
}

.error {
    text-align: center;
    padding: 20px;
    color: #dc3545;
    font-style: italic;
}

/* Field errors */
.field-error {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
}

.topics-error {
    color: #dc3545;
    font-size: 12px;
    margin-top: 10px;
    text-align: center;
}

/* Alert messages */
.alert {
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 14px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Prevent browser auto-fill styling */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
    -webkit-text-fill-color: #333 !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* Ensure form fields have clean appearance */
.subscribe-form input,
.subscribe-form select {
    background-color: #fff;
    border: 1px solid #ddd;
    transition: border-color 0.3s ease;
}

.subscribe-form input:focus,
.subscribe-form select:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* Form row styling */

/* Responsive design */
@media (max-width: 1200px) {
    .content-wrapper {
        max-width: 100%;
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
        gap: 15px;
    }

    .left-sidebar {
        width: 100%;
        order: 2;
    }

    .main-area {
        order: 1;
    }

    .subscribe-container {
        padding: 0;
    }

    .subscribe-header {
        flex-direction: column;
        align-items: stretch;
        padding: 15px 15px 0 15px;
    }

    .subscribe-form-container {
        padding: 20px;
        margin: 0 15px 15px 15px;
    }

    .form-row {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .form-row label {
        min-width: auto;
        margin-bottom: 5px;
    }

    .phone-input {
        flex-direction: column;
        gap: 10px;
    }

    .phone-input select {
        flex: 1;
        min-width: auto;
    }

    .country-selects {
        flex-direction: column;
        gap: 10px;
    }

    .topics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .topic-checkbox {
        padding: 6px;
    }

    .topic-checkbox label {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .content-wrapper {
        padding: 10px;
    }

    .topics-grid {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .topic-checkbox {
        padding: 5px;
    }

    .topic-checkbox label {
        font-size: 11px;
    }
}
