/* style.css - DAMA Bolivia Landing Page Stylesheet */

:root {
    --primary-blue: #001f9a;
    --secondary-blue: #001363;
    --accent-red: #D52B1E;
    --accent-yellow: #F4C430;
    --accent-green: #007A33;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --white: #ffffff;
    --font-inter: 'Inter', sans-serif;
    
    /* Box Shadows */
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-btn: 0 10px 15px -3px rgba(0, 31, 154, 0.15), 0 4px 6px -4px rgba(0, 31, 154, 0.15);
    --shadow-btn-hover: 0 20px 25px -5px rgba(0, 31, 154, 0.2), 0 8px 10px -6px rgba(0, 31, 154, 0.2);
}

/* Reset & Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-inter);
    background-color: var(--slate-50);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    color: var(--slate-800);
}

@media (min-width: 768px) {
    body {
        padding: 2rem;
    }
}

/* Main Container */
.main-container {
    position: relative;
    width: 100%;
    max-width: 1024px;
    background-color: var(--white);
    border-radius: 1rem;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    border: 1px solid var(--slate-100);
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .main-container {
        flex-direction: row;
    }
}

/* Bolivian Tricolor Acent */
.bolivian-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(
        to right,
        var(--accent-red) 33.33%,
        var(--accent-yellow) 33.33% 66.66%,
        var(--accent-green) 66.66%
    );
    z-index: 20;
}

/* Left Section: Branding */
.branding-section {
    position: relative;
    flex: 1;
    background: linear-gradient(135deg, var(--slate-50) 0%, rgba(239, 246, 255, 0.5) 100%);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    border-bottom: 1px solid var(--slate-100);
}

@media (min-width: 768px) {
    .branding-section {
        padding: 3rem;
        border-bottom: none;
        border-right: 1px solid var(--slate-100);
    }
}

/* Tech dot pattern */
.dotted-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(var(--primary-blue) 1px, transparent 1px);
    background-size: 16px 16px;
    opacity: 0.04;
    pointer-events: none;
}

.branding-content {
    position: relative;
    z-index: 10;
    margin: auto 0;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.logo-wrapper {
    display: flex;
    justify-content: center;
}

@media (min-width: 768px) {
    .logo-wrapper {
        justify-content: flex-start;
    }
}

.logo-img {
    max-width: 240px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.05));
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.02);
}

@media (min-width: 768px) {
    .logo-img {
        max-width: 280px;
    }
}

/* Bolivia Sub-tag info */
.chapter-tag {
    display: none;
    align-items: center;
    gap: 0.5rem;
}

@media (min-width: 768px) {
    .chapter-tag {
        display: flex;
    }
}

.dot-red { width: 6px; height: 6px; border-radius: 50%; background-color: var(--accent-red); animation: pulse 2s infinite; }
.dot-yellow { width: 6px; height: 6px; border-radius: 50%; background-color: var(--accent-yellow); }
.dot-green { width: 6px; height: 6px; border-radius: 50%; background-color: var(--accent-green); }

.tag-text {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    color: var(--slate-400);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .5; }
}

/* Campaign Headers */
.campaign-info {
    text-align: center;
}

@media (min-width: 768px) {
    .campaign-info {
        text-align: left;
    }
}

.campaign-title {
    font-size: 1.875rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .campaign-title {
        font-size: 2.25rem;
    }
}

.title-line {
    height: 4px;
    width: 4rem;
    background-color: var(--primary-blue);
    border-radius: 9999px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .title-line {
        margin: 0;
    }
}

.campaign-desc {
    margin-top: 1rem;
    color: var(--slate-600);
    line-height: 1.6;
    font-size: 0.875rem;
}

@media (min-width: 768px) {
    .campaign-desc {
        font-size: 1rem;
    }
}

/* Event Date badge */
.badge-wrapper {
    display: flex;
    justify-content: center;
}

@media (min-width: 768px) {
    .badge-wrapper {
        justify-content: flex-start;
    }
}

.date-badge {
    inline-size: max-content;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

@media (min-width: 768px) {
    .date-badge {
        font-size: 0.875rem;
    }
}

.date-badge i {
    color: #d97706;
}

/* Branding footer */
.branding-footer {
    display: none;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(226, 232, 240, 0.5);
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--slate-400);
}

@media (min-width: 768px) {
    .branding-footer {
        display: flex;
    }
}

.branding-footer span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Right Section: Form Container */
.form-section {
    flex: 1;
    padding: 2rem;
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

@media (min-width: 768px) {
    .form-section {
        padding: 3rem;
    }
}

/* Form headers */
.form-header {
    margin-bottom: 1.5rem;
}

.form-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--slate-800);
}

@media (min-width: 768px) {
    .form-header h2 {
        font-size: 1.5rem;
    }
}

.form-header p {
    font-size: 0.75rem;
    color: var(--slate-500);
    margin-top: 0.25rem;
}

@media (min-width: 768px) {
    .form-header p {
        font-size: 0.875rem;
    }
}

/* Forms layout */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--slate-700);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.input-relative {
    position: relative;
}

.custom-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: 0.75rem;
    font-size: 0.875rem;
    color: var(--slate-800);
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-input::placeholder {
    color: var(--slate-400);
}

.custom-input:focus {
    background-color: var(--white);
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(0, 31, 154, 0.15);
}

/* Validation styling */
.validation-icon {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
}

.error-msg {
    font-size: 0.75rem;
    color: #ef4444;
    margin-top: 0.25rem;
}

.hidden {
    display: none !important;
}

/* Input validation states */
.border-red-500 {
    border-color: #ef4444 !important;
}
.bg-red-50\/20 {
    background-color: rgba(254, 242, 242, 0.2) !important;
}
.border-green-500 {
    border-color: #22c55e !important;
}
.bg-green-50\/20 {
    background-color: rgba(240, 253, 244, 0.2) !important;
}

/* Submit Button */
.submit-btn {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-btn);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.submit-btn:hover {
    background-color: var(--secondary-blue);
    box-shadow: var(--shadow-btn-hover);
}

.submit-btn:active {
    transform: scale(0.98);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-tricolor-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, #ef4444, #fbbf24, #22c55e);
}

/* Spin animation for loaders */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

.spinner-icon {
    width: 1.25rem;
    height: 1.25rem;
}

/* Notification Banners */
.banner {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    display: flex;
    align-items: start;
    gap: 0.75rem;
}

.banner-info {
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

.banner-info i {
    color: #2563eb;
    margin-top: 0.125rem;
    font-size: 1rem;
}

.banner-title {
    font-weight: 600;
}

.banner-desc {
    font-size: 0.75rem;
    margin-top: 0.25rem;
    opacity: 0.95;
}

/* API Banners dynamic */
.bg-red-50 {
    background-color: #fef2f2 !important;
}
.border-red-200 {
    border-color: #fecaca !important;
}
.text-red-800 {
    color: #991b1b !important;
}
.bg-green-50 {
    background-color: #f0fdf4 !important;
}
.border-green-200 {
    border-color: #bbf7d0 !important;
}
.text-green-800 {
    color: #166534 !important;
}

/* Success Modal Overlay */
.success-modal {
    position: absolute;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    z-index: 30;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.success-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.success-icon-container {
    width: 5rem;
    height: 5rem;
    background-color: #f0fdf4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border: 1px solid #dcfce7;
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
}

.success-icon-container i {
    font-size: 2.25rem;
    color: var(--accent-green);
}

.success-modal h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.success-sub {
    font-size: 0.875rem;
    color: var(--slate-500);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.success-text {
    font-size: 0.875rem;
    color: var(--slate-600);
    max-width: 28rem;
    line-height: 1.625;
    margin-bottom: 2rem;
}

.close-btn {
    padding: 0.75rem 2rem;
    background-color: var(--slate-100);
    color: var(--slate-700);
    font-weight: 700;
    font-size: 0.875rem;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.close-btn:hover {
    background-color: var(--slate-200);
}

.close-btn:active {
    transform: scale(0.95);
}

/* Footer layout */
.footer-text {
    font-size: 11px;
    color: var(--slate-400);
    text-align: center;
    margin-top: 1.5rem;
}

/* Animations */
@keyframes slideIn {
    from {
        transform: translateY(-1rem);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.animate-slide-in {
    animation: slideIn 0.3s ease-out forwards;
}
