/* GasWay Fidelity Program - Modern Corporate Style */

:root {
    --primary-blue: #261FB1;
    --primary-orange: #FF9000;
    --dark-blue: #1a1580;
    --light-blue: #3d32d4;
    --dark-orange: #cc7300;
    --light-orange: #ffb84d;
    
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --medium-gray: #6c757d;
    --dark-gray: #343a40;
    --border-gray: #dee2e6;
    
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 25px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
    
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    font-weight: 400;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

.text-primary {
    color: var(--primary-blue) !important;
}

.text-secondary {
    color: var(--primary-orange) !important;
}

/* Main Container */
.main-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Section */
.corporate-header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    border-bottom: 3px solid var(--primary-blue);
    padding: 1.5rem 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-image {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.brand-info h1 {
    font-size: 2.2rem;
    color: var(--primary-blue);
    margin-bottom: 0.2rem;
    font-weight: 900;
}

.brand-subtitle {
    font-size: 1rem;
    color: var(--primary-orange);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Main Content Section */
.main-content {
    flex: 1;
    padding: 4rem 0;
    display: flex;
    align-items: center;
}

.content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Main Layout */
.main-layout {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.left-column {
    flex: 1;
    max-width: 60%;
}

.right-column {
    flex: 0 0 40%;
    min-width: 420px;
}

/* Program Introduction */
.program-introduction {
    text-align: left;
    margin-bottom: 3rem;
}

.intro-title {
    font-size: 2.8rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-weight: 900;
}

.intro-subtitle {
    font-size: 1.2rem;
    color: var(--medium-gray);
    line-height: 1.7;
    margin-bottom: 0;
}

/* Benefits Section */
.benefits-section {
    margin-bottom: 2rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
    margin-top: 0;
}

.benefit-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-gray);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-orange));
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.benefit-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: var(--transition);
}

.benefit-card:hover .benefit-icon {
    background: linear-gradient(135deg, var(--primary-orange), var(--light-orange));
}

.benefit-icon i {
    font-size: 1.8rem;
    color: var(--white);
}

.benefit-card h4 {
    font-size: 1.3rem;
    color: var(--primary-blue);
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.benefit-card p {
    color: var(--medium-gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Form Section */
.form-section {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 2.5rem;
    border: 1px solid var(--border-gray);
    position: relative;
    overflow: hidden;
    height: fit-content;
}

.form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-orange));
}

.form-header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding-top: 1rem;
}

.form-title {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.form-description {
    font-size: 1rem;
    color: var(--medium-gray);
    line-height: 1.6;
}

/* Form Styles */
.contact-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-control,
.form-select {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border: 2px solid var(--border-gray);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--white);
    color: var(--dark-gray);
}

.form-control:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(38, 31, 177, 0.1);
    transform: translateY(-1px);
}

.form-control::placeholder {
    color: var(--medium-gray);
    opacity: 0.8;
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--dark-blue), var(--primary-blue));
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--white);
}

.btn-lg {
    padding: 1.1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-submit {
    min-width: 200px;
}

/* Form Validation */
.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1) !important;
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #dc3545;
    font-weight: 500;
}

/* Footer */
.corporate-footer {
    background: var(--primary-blue);
    color: var(--white);
    padding: 2rem 0;
    margin-top: auto;
}

.footer-content {
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-logo img {
    height: 40px;
    filter: brightness(0) invert(1);
}

.footer-brand {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
}

.footer-text {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.contact-info-footer {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.contact-info-footer span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

.contact-info-footer i {
    color: var(--primary-orange);
}

.copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Flash Messages */
.flash-messages {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
    max-width: 400px;
}

.alert {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: var(--shadow-md);
    font-weight: 500;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

/* Loading States */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid var(--white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .content-wrapper {
        padding: 0 1.5rem;
    }
    
    .main-layout {
        gap: 2rem;
    }
    
    .right-column {
        min-width: 380px;
    }
    
    .form-section {
        padding: 2.5rem;
    }
}

@media (max-width: 992px) {
    .main-layout {
        flex-direction: column;
        gap: 2rem;
    }
    
    .left-column {
        max-width: 100%;
    }
    
    .right-column {
        flex: none;
        min-width: auto;
        width: 100%;
    }
    
    .program-introduction {
        text-align: center;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .brand-info h1 {
        font-size: 1.8rem;
    }
    
    .intro-title {
        font-size: 2.2rem;
    }
    
    .intro-subtitle {
        font-size: 1.1rem;
    }
    
    .main-layout {
        gap: 1.5rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .benefit-card {
        padding: 1.5rem;
    }
    
    .form-section {
        padding: 2rem;
        margin: 0;
    }
    
    .form-title {
        font-size: 1.7rem;
    }
    
    .contact-info-footer {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .main-content {
        padding: 2rem 0;
    }
    
    .content-wrapper {
        padding: 0 1rem;
    }
    
    .logo-image {
        height: 45px;
    }
    
    .brand-info h1 {
        font-size: 1.5rem;
    }
    
    .brand-subtitle {
        font-size: 0.85rem;
    }
    
    .intro-title {
        font-size: 1.9rem;
    }
    
    .intro-subtitle {
        font-size: 1rem;
    }
    
    .program-introduction {
        margin-bottom: 3rem;
    }
    
    .benefits-section {
        margin-bottom: 3rem;
    }
    
    .benefit-card {
        padding: 1.2rem;
    }
    
    .benefit-icon {
        width: 60px;
        height: 60px;
    }
    
    .form-section {
        padding: 1.5rem;
        margin: 0 0.5rem;
    }
    
    .form-title {
        font-size: 1.5rem;
    }
    
    .form-control,
    .form-select {
        padding: 0.8rem 1rem;
    }
    
    .btn-lg {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dark-blue);
}

/* Print styles */
@media print {
    .corporate-footer,
    .flash-messages,
    .btn {
        display: none;
    }
    
    .main-container {
        background: white;
    }
    
    .form-section {
        box-shadow: none;
        border: 2px solid var(--border-gray);
    }
}