/**
 * Frontend Stylesheet
 * LWPM/ROR Exhibition 2025 Reports
 * Company: Gsoft Interactive Systems Ltd
 * Loveworld Color Scheme: Blue (#003DA5), Gold (#FFD700), Yellow (#FFC627)
 */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #003DA5 0%, #0051d5 100%);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, #003DA5 0%, #0051d5 100%);
    color: #fff;
    padding: 40px 30px;
    text-align: center;
    border-bottom: 5px solid #FFD700;
}

.header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 1.2em;
    color: #FFC627;
    font-weight: 500;
}

/* Alert Messages */
.alert {
    padding: 15px 20px;
    margin: 20px 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.alert-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.alert-icon {
    font-size: 1.5em;
    font-weight: bold;
}

/* Form Container */
.form-container {
    padding: 30px;
}

.form-section {
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 2px solid #f0f0f0;
}

.form-section:last-of-type {
    border-bottom: none;
}

.section-title {
    color: #003DA5;
    font-size: 1.6em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #FFD700;
    display: inline-block;
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 0.95em;
}

.required {
    color: #dc3545;
    font-weight: bold;
}

/* Input Fields */
input[type="text"],
input[type="tel"],
input[type="number"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    font-family: inherit;
    transition: all 0.3s ease;
    background-color: #fff;
}

input[type="text"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #003DA5;
    box-shadow: 0 0 0 3px rgba(0, 61, 165, 0.1);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

small {
    display: block;
    color: #666;
    font-size: 0.85em;
    margin-top: 5px;
}

/* Select Dropdown */
select {
    cursor: pointer;
    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='%23003DA5' 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;
}

/* Buttons */
.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    padding-top: 20px;
}

.btn-submit,
.btn-reset {
    padding: 15px 40px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-submit {
    background: linear-gradient(135deg, #003DA5 0%, #0051d5 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 61, 165, 0.3);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 61, 165, 0.4);
}

.btn-reset {
    background: #6c757d;
    color: #fff;
}

.btn-reset:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: #f8f9fa;
    padding: 25px 30px;
    text-align: center;
    border-top: 3px solid #FFD700;
    color: #666;
}

.footer p {
    margin: 5px 0;
    font-size: 0.95em;
}

.footer strong {
    color: #003DA5;
    font-weight: 700;
}

.admin-link {
    margin-top: 15px;
}

.admin-link a {
    color: #003DA5;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 20px;
    border: 2px solid #003DA5;
    border-radius: 5px;
    display: inline-block;
    transition: all 0.3s ease;
}

.admin-link a:hover {
    background: #003DA5;
    color: #fff;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .header {
        padding: 30px 20px;
    }

    .header h1 {
        font-size: 1.8em;
    }

    .subtitle {
        font-size: 1em;
    }

    .form-container {
        padding: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn-submit,
    .btn-reset {
        width: 100%;
        padding: 15px;
    }

    .section-title {
        font-size: 1.3em;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.5em;
    }

    .subtitle {
        font-size: 0.9em;
    }

    .form-container {
        padding: 15px;
    }

    input[type="text"],
    input[type="tel"],
    input[type="number"],
    input[type="date"],
    select,
    textarea {
        padding: 10px 12px;
        font-size: 0.95em;
    }

    .section-title {
        font-size: 1.2em;
    }
}

/* Verification Notice Box */
.verification-notice {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-left: 5px solid #ff9800;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.verification-notice .notice-icon {
    font-size: 1.5em;
    flex-shrink: 0;
    margin-top: 2px;
}

.verification-notice p {
    margin: 0;
    color: #856404;
    font-size: 0.95em;
    line-height: 1.5;
}

.verification-notice strong {
    color: #ff9800;
    font-weight: 700;
}

/* Loading Animation (for future use) */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #003DA5;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}