@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

.event-page-wrapper {
    --evt-primary: #3B82F6;
    --evt-primary-hover: #2563EB;

    --evt-bg: #FFFFFF;
    --evt-surface: #F3F4F6;
    --evt-text-main: #1F2937;
    --evt-text-muted: #6B7280;
    --evt-white: #FFFFFF;

    --evt-radius-pill: 50px;
    --evt-radius-card: 1rem;

    font-family: 'Poppins', sans-serif;
    background-color: var(--evt-bg);
    color: var(--evt-text-main);
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.event-page-wrapper * {
    box-sizing: border-box;
}

.event-page-wrapper h1 {
    font-size: 4rem!important;
    line-height: 1.1!important;
    font-weight: 800!important;
    letter-spacing: -0.03em!important;
    margin-bottom: 2.5rem!important;
    color: var(--evt-white)!important;
    border: none;
}
.event-page-wrapper h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--evt-text-main);
    border: none;
}
.event-page-wrapper h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--evt-text-main);
    border: none;
}
.event-page-wrapper p {
    line-height: 1.6;
    color: var(--evt-text-muted);
}

.evt-btn {
    display: inline-flex; justify-content: center; align-items: center;
    padding: 0.75rem 1.5rem; font-size: 0.95rem;
    font-weight: 600; cursor: pointer; border: none;
    transition: all .2s ease;
    border-radius: var(--evt-radius-pill);
}
.evt-btn--primary {
    background-color: var(--evt-primary);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
}
.evt-btn--primary:hover {
    background-color: var(--evt-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 8px -1px rgba(59, 130, 246, 0.4);
}
.evt-btn:disabled { opacity: 0.7; cursor: not-allowed; }

.evt-input {
    display: flex; height: 3.2rem; width: 100%;
    border-radius: var(--evt-radius-pill);
    border: 1px solid transparent;
    background-color: var(--evt-surface);
    padding: 0.5rem 1.5rem;
    font-size: 0.95rem;
    color: var(--evt-text-main);
    transition: all 0.2s;
}
.evt-input:focus {
    outline: none;
    background-color: var(--evt-white);
    border-color: var(--evt-primary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}
textarea.evt-input {
    border-radius: 20px;
    padding-top: 1rem;
}

.evt-card {
    background: white;
    border-radius: var(--evt-radius-card);
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.05);
    border: none;
    padding: 2.5rem;
}

.event-container {
    max-width: 1100px; margin: 0 auto; padding: 0 2rem; width: 100%;
}

/* --- SECTION 1: HERO */
.event-hero {
    background-color: var(--evt-primary);
    color: var(--evt-white);
    padding: 0;
    position: relative;
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.event-hero .event-container.hero-grid {
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: stretch;
    gap: 0;
}

.hero-text {
    flex: 1;
    padding: 6rem 4rem 8rem 6rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 2;
}

.hero-image-placeholder {
    flex: 1;
    width: 100%;
    height: auto;
    min-height: 600px;
    border-radius: 0;
    box-shadow: none;
    transform: none;
    border: none;
    background: transparent;
    margin: 0;
}

.hero-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-details {
    margin-top: 3rem;
    border-left: 4px solid rgba(255,255,255, 0.3);
    padding-left: 2rem;
}

.detail-item .label{
    margin-bottom: 0!important;
}



/* --- SECTION 2: AGENDA --- */
.event-agenda {
    background-color: var(--evt-white);
    padding: 2rem 0;
}
.agenda-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    margin-top: 3rem;
}
.agenda-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
}
.agenda-list::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: var(--evt-surface);
}
.agenda-item {
    display: flex;
    flex-direction: column;
    padding-left: 2rem;
    position: relative;
}
.agenda-item::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 6px;
    width: 12px;
    height: 12px;
    background: var(--evt-primary);
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 0 2px var(--evt-primary);
}
.agenda-item .time {
    font-weight: 700;
    color: var(--evt-primary);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}
.agenda-item .activity {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--evt-text-main);
}
.agenda-description p.lead {
    font-size: 1.15rem;
    color: var(--evt-text-main);
    font-weight: 400;
}

/* --- SECTION 3: RSVP */
.event-rsvp {
    background-color: #FAFAFA;
    padding: 2rem 0;
}

.rsvp-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.rsvp-text {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}
.rsvp-text h2 {
    color: var(--evt-primary);
    margin-bottom: 1rem;
}
.rsvp-text p {
    color: var(--evt-text-muted);
}

.rsvp-form-container {
    width: 100%;
    max-width: 700px;
}

.evt-form-layout {
    margin-bottom: 0;
    width: 100%;
}
.evt-form-layout label {
    display: block;
    margin-bottom: 0.5rem;
    margin-left: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--evt-text-muted);
}

.evt-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.evt-form-full {
    grid-column: 1 / -1;
}
.evt-input[ng-click]:hover {
    background-color: #e5e7eb;
    border-color: var(--evt-primary);
    color: var(--evt-primary);
}

.ktp-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1rem;
}

.ktp-modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: ktp-modal-slide-up 0.3s ease-out;
}

@keyframes ktp-modal-slide-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ktp-modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ktp-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--evt-text-main);
}

.ktp-modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: #9ca3af;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.ktp-modal-close:hover {
    background-color: #f3f4f6;
    color: #374151;
}

.ktp-modal-body {
    padding: 1.5rem;
    text-align: center;
}

.ktp-video-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}

.ktp-video {
    width: 100%;
    display: block;
    border-radius: 8px;
}

.ktp-canvas {
    display: none;
}

.ktp-capture-controls {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.ktp-capture-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background-color: var(--evt-primary);
    color: white;
}

.ktp-capture-btn:hover {
    background-color: var(--evt-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ktp-capture-btn:active {
    transform: translateY(0);
}

.ktp-capture-btn svg {
    width: 20px;
    height: 20px;
}

.ktp-helper-text {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.5;
}

.ktp-photo-preview {
    width: 100%;
    margin-top: 1rem;
}

.ktp-preview-container {
    position: relative;
    display: inline-block;
    max-width: 300px;
}

.ktp-preview-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 2px solid #e5e7eb;
    display: block;
}

.ktp-retake-btn {
    margin-top: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s;
}

.ktp-retake-btn:hover {
    background-color: #f9fafb;
    border-color: #9ca3af;
}

/*Responsive*/
@media (max-width: 900px) {
    .hero-grid, .agenda-layout {
        grid-template-columns: 1fr; gap: 3rem;
    }
    .evt-form-grid {
        grid-template-columns: 1fr;
    }
    .hero-image-placeholder {
        display: none;
    }
    .event-hero {
        text-align: center;
        border-radius: 0 0 40px 40px;
        clip-path: none;
        border-bottom-left-radius: 40px;
        border-bottom-right-radius: 40px;
    }
    .event-hero .event-container.hero-grid {
        flex-direction: column-reverse;
    }
    .hero-details {
        border-left: none;
        padding-left: 0;
    }
    .hero-text {
        padding: 3rem 2rem;
        text-align: left;
    }

    .hero-image-placeholder {
        height: 300px;
        min-height: auto;
    }
    .detail-item {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }
    .agenda-list::before {
        left: 0;
    }
    .event-page-wrapper h1 {
        font-size: 2.75rem!important;
    }

    .evt-card {
        padding:1rem;
    }

    .evt-card form{
        padding: 0;
    }
}

@media (max-width: 640px) {
    .ktp-modal-overlay {
        padding: 0.5rem;
    }

    .ktp-modal-content {
        max-width: 100%;
        border-radius: 8px;
    }

    .ktp-modal-header {
        padding: 1rem;
    }

    .ktp-modal-body {
        padding: 1rem;
    }

    .ktp-capture-btn {
        padding: 0.625rem 1.5rem;
        font-size: 0.875rem;
    }
}