/* ERM Online Ticket Submission Form Styles */

/* Reset and base styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Arial', 'Helvetica', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #151f2d;
    color: #333;
    line-height: 1.6;
}

/* ==========================================================================
   HEADER STYLES (Blue Header from Original)
   ========================================================================== */

.erm-header {
    background-color: #151f2d;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    xxbox-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logos {
    display: flex;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.erm-online-logo,
.erm-academy-logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

/* Fallback for missing logo images */
.erm-online-logo img[src*="erm-online-logo.png"],
.erm-academy-logo img[src*="erm-academy-logo.png"] {
    display: inline-block;
}

/* If images fail to load, show text fallback */
.erm-online-logo::before {
    content: "ERM Online";
    display: inline-block;
    background-color: rgba(255,255,255,0.1);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 16px;
}

.erm-academy-logo::before {
    content: "ERM Academy";
    display: inline-block;
    background-color: rgba(255,255,255,0.1);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 16px;
}

/* Hide fallback text when images load successfully */
.erm-online-logo img,
.erm-academy-logo img {
    display: block;
}

.erm-online-logo:has(img) ::before,
.erm-academy-logo:has(img) ::before {
    display: none;
}

.logo-divider {
    width: 2px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.3);
    margin: 0 10px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-btn {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.header-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}

/* ==========================================================================
   MAIN CONTENT CONTAINER
   ========================================================================== */

/* Container */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 20px;
    background-color: #ffffff;
    /*box-shadow: 0 2px 10px rgba(0,0,0,0.1);*/
    border-radius: 8px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 1px;
    border-bottom: 3px solid #007cba;
}

.page-header h1 {
    color: #2c3e50;
    font-size: 2em;
    margin: 0;
}

/* Typography */
h1 {
    color: #2c3e50;
    font-size: 2em;
    margin-bottom: 30px;
    text-align: center;
    xxborder-bottom: 3px solid #007cba;
    xxpadding-bottom: 15px;
}

h2 {
    color: #34495e;
    font-size: 1.8em;
    margin-top: 30px;
    margin-bottom: 20px;
    border-left: 4px solid #007cba;
    padding-left: 15px;
}

h3 {
    color: #2c3e50;
    font-size: 1.4em;
    margin-bottom: 15px;
}

/* Form styles */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.1em;
}

input[type="text"],
input[type="email"],
textarea,
select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e8ed;
    border-radius: 6px;
    font-size: 16px;
    xxtransition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #007cba;
    xxbox-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

textarea {
    height: 120px;
    resize: vertical;
    font-family: inherit;
}

select {
    cursor: pointer;
    background-color: #ffffff;
}

/* File upload styling */
.file-upload {
    margin-bottom: 15px;
    padding: 15px;
    border: 2px dashed #d1d5db;
    border-radius: 6px;
    transition: border-color 0.3s ease;
}

.file-upload:hover {
    border-color: #007cba;
}

.file-upload label {
    margin-bottom: 5px;
    font-size: 1em;
    color: #6b7280;
}

input[type="file"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background-color: #f9fafb;
}

/* Required field indicator */
.required {
    color: #e74c3c;
    font-weight: bold;
}

/* Submit button */
.submit-btn {
    background-color: #151f2d;
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: block;
    margin: 30px auto 0;
    min-width: 150px;
}

.submit-btn:hover {
    background-color: #151f2d;
    transform: translateY(-2px);
    xxbox-shadow: 0 5px 15px rgba(0, 124, 186, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Animated logo section */
.animated-logo {
    text-align: center;
    margin: 40px 0;
    padding: 20px;
}

.animated-logo img {
    max-width: 120px;
    height: auto;
}

/* Footer links */
.footer-links {
    margin-top: 50px;
    padding-top: 25px;
    border-top: 2px solid #e1e8ed;
    text-align: center;
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 6px;
}

.footer-links a {
    color: #007cba;
    text-decoration: none;
    margin: 0 15px;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #005a87;
    text-decoration: underline;
}

/* Responsive design */
@media (max-width: 768px) {
    /* Header responsive */
    .header-container {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }
    
    .logo-section {
        flex-direction: column;
        gap: 10px;
    }
    
    .logo-divider {
        width: 40px;
        height: 2px;
        margin: 5px 0;
    }
    
    /* Main content responsive */
    .container {
        margin: 10px;
        padding: 20px 15px;
    }
    
    h1 {
        font-size: 2em;
    }
    
    h2 {
        font-size: 1.5em;
    }
    
    /* Footer responsive */
    .footer-main {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .app-downloads {
        flex-direction: row;
        gap: 15px;
    }
}

/* Additional styling for better UX */
.form-section {
    background-color: #fafbfc;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 25px;
    border: 1px solid #e1e8ed;
}

/* Error states (for future JS validation) */
.error {
    border-color: #e74c3c !important;
}

.error-message {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 5px;
    display: block;
}

/* ==========================================================================
   FOOTER STYLES (Blue Footer from Original)
   ========================================================================== */

.erm-footer {
    background-color: #151f2d;
    color: white;
    margin-top: 50px;
    padding: 40px 0 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-main {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo-img {
    height: 60px;
    width: auto;
    filter: brightness(0) invert(1);
    margin-bottom: 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.footer-section h4 {
    color: #ecf0f1;
    font-size: 1.2em;
    margin-bottom: 15px;
    font-weight: 600;
    border-bottom: 2px solid #007cba;
    padding-bottom: 5px;
    display: inline-block;
}

.footer-section p {
    color: #bdc3c7;
    line-height: 1.6;
    margin: 8px 0;
    font-size: 14px;
}

.social-section {
    text-align: center;
}

.social-icons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
}

.social-link {
    display: inline-block;
    transition: transform 0.3s ease;
}

.social-link:hover {
    transform: scale(1.1);
}

.social-link img {
    xwidth: 35px;
    height: 35px;
    filter: brightness(0) invert(1);
}

.app-downloads {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.app-downloads img {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}

.app-downloads img:hover {
    transform: scale(1.05);
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 5px 10px;
}

.footer-links a:hover {
    color: #ecf0f1;
    text-decoration: underline;
}

/* Footer responsive design */
@media (max-width: 768px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .app-downloads {
        flex-direction: row;
        gap: 15px;
    }
}