/* 
 * Guruvayoor Services - Photography Shortcode CSS
 * EXACT SAME STYLE as food/event modals
 */

:root {
    /* Photography uses same colors as events/food */
    --photography-primary: #003366;
    --photography-secondary: #FF9933;
    --photography-accent: #FF9933;
    --photography-light-bg: #FFF8E7;
    --photography-dark-blue: #004488;
    --photography-white: #FFFFFF;
    --photography-text: #000000;
    --photography-gray: #555555;
    --photography-border: #e0e0e0;
    --photography-shadow: rgba(0, 51, 102, 0.08);
    --photography-success: #0a875a;
    --photography-danger: #dc2626;
}


/* Photography Modal - SAME as food modal */

.wide_gv_photography_modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999 !important;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.wide_gv_photography_modal.active {
    display: flex !important;
}

.wide_gv_modal_overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.wide_gv_modal_content {
    position: relative;
    background: var(--photography-white);
    border-radius: 24px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    animation: modalFadeIn 0.3s ease;
    display: flex;
    flex-direction: column;
    margin: auto;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Body lock when modal is open */

body.modal-open {
    overflow: hidden !important;
}


/* Modal Header - SAME as food modal */

.wide_gv_modal_header {
    position: relative;
    height: 180px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    background-image: url(/wp-content/uploads/2025/12/guruvayoor-services-photography.png)!important;
    background-size: cover!important;
    background-position: center!important;
    background-repeat: no-repeat!important;
}

.modal_header_icon {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 48px;
    color: var(--photography-white);
    background: rgba(255, 255, 255, 0.1);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.modal_header_info {
    position: relative;
    z-index: 2;
    background: linear-gradient(transparent, rgba(0, 51, 102, 0.9));
    color: var(--photography-white);
    padding: 30px 30px 20px;
    width: 100%;
}

.modal_header_info h3 {
    margin: 0 0 8px 0;
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    font-weight: 600;
    color: var(--photography-white);
    text-align: center;
}

.modal_header_info p {
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    text-align: center;
}


/* Modal Close Button - SAME as food modal */

.wide_gv_modal_close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--photography-white);
    border: none;
    color: var(--photography-primary);
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.wide_gv_modal_close:hover {
    background: var(--photography-secondary);
    color: var(--photography-white);
    transform: rotate(90deg);
}


/* Modal Body - SAME as food modal */

.wide_gv_modal_body {
    padding: 30px;
    flex: 1;
    overflow-y: auto;
}


/* Form Layout */

.form_row {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.form_group {
    margin-bottom: 25px;
}

.form_group.half {
    flex: 1;
    min-width: 0;
}

.form_group label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--photography-primary);
}

.form_icon {
    font-size: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--photography-light-bg);
    border-radius: 8px;
    color: var(--photography-secondary);
}

.form_hint {
    margin: 8px 0 0 0;
    font-family: 'Playfair Display', serif;
    font-size: 14px;
    color: var(--photography-gray);
    font-style: italic;
    line-height: 1.5;
    padding-left: 46px;
    /* Align with label */
}


/* Form Inputs - SAME as food modal */

.wide_gv_select_input,
.wide_gv_number_input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--photography-border);
    border-radius: 12px;
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    color: var(--photography-text);
    background: var(--photography-light-bg);
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23003366' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 16px;
    padding-right: 50px;
}

.wide_gv_number_input {
    background-image: none;
    padding-right: 20px;
}

.wide_gv_select_input:focus,
.wide_gv_number_input:focus {
    outline: none;
    border-color: var(--photography-secondary);
    box-shadow: 0 0 0 3px rgba(255, 153, 51, 0.2);
    background-color: var(--photography-white);
}


/* Textarea Input */

.wide_gv_textarea_input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--photography-border);
    border-radius: 12px;
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    color: var(--photography-text);
    background: var(--photography-light-bg);
    transition: all 0.3s ease;
    resize: vertical;
    min-height: 100px;
    max-height: 150px;
}

.wide_gv_textarea_input:focus {
    outline: none;
    border-color: var(--photography-secondary);
    box-shadow: 0 0 0 3px rgba(255, 153, 51, 0.2);
    background-color: var(--photography-white);
}


/* Character Counter */

.char_counter {
    text-align: right;
    margin-top: 8px;
    font-family: 'Playfair Display', serif;
    font-size: 13px;
    color: var(--photography-gray);
}

.char_counter #char_count.near-limit {
    color: var(--photography-secondary);
    font-weight: bold;
}


/* View Mode Styles */

.photography_mode {
    transition: opacity 0.3s ease;
}

.cart_item_summary {
    background: var(--photography-light-bg);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    border: 2px solid var(--photography-border);
}

.cart_item_summary h4 {
    margin: 0 0 20px 0;
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    color: var(--photography-primary);
    border-bottom: 2px solid var(--photography-secondary);
    padding-bottom: 10px;
}

.summary_details {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.summary_row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid var(--photography-border);
}

.summary_row:last-child {
    border-bottom: none;
}

.summary_label {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    color: var(--photography-primary);
    font-size: 16px;
    flex: 0 0 160px;
}

.summary_value {
    font-family: 'Playfair Display', serif;
    color: var(--photography-text);
    font-size: 16px;
    flex: 1;
    text-align: right;
    line-height: 1.6;
}


/* Modal Footer - SAME as food modal */

.wide_gv_modal_footer {
    padding: 25px 30px;
    background: var(--photography-light-bg);
    border-top: 1px solid var(--photography-border);
}

.photography_footer_buttons {
    display: flex;
    gap: 15px;
}

.wide_gv_modal_btn {
    flex: 1;
    padding: 18px 20px;
    border-radius: 12px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.wide_gv_modal_btn.primary {
    background: linear-gradient(135deg, var(--photography-secondary) 0%, #e68829 100%);
    color: var(--photography-white);
}

.wide_gv_modal_btn.primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 153, 51, 0.4);
}

.wide_gv_modal_btn.secondary {
    background: transparent;
    color: var(--photography-primary);
    border: 2px solid var(--photography-primary);
}

.wide_gv_modal_btn.secondary:hover:not(:disabled) {
    background: var(--photography-primary);
    color: var(--photography-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 51, 102, 0.3);
}

.wide_gv_modal_btn.danger {
    background: linear-gradient(135deg, var(--photography-danger) 0%, #b91c1c 100%);
    color: var(--photography-white);
    border: 2px solid var(--photography-danger);
}

.wide_gv_modal_btn.danger:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.4);
}

.wide_gv_modal_btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.btn-icon {
    font-size: 20px;
}


/* Cart Notification - SAME as food modal */

#wide_gv_photography_cart_notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--photography-success);
    color: var(--photography-white);
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 350px;
    border-left: 5px solid var(--photography-secondary);
}

#wide_gv_photography_cart_notification.show {
    transform: translateY(0);
    opacity: 1;
}

#wide_gv_photography_cart_notification.hide {
    transform: translateY(100px);
    opacity: 0;
}

.wide_gv_cart_icon {
    font-size: 22px;
}

.wide_gv_cart_message {
    font-family: 'Playfair Display', serif;
    font-size: 15px;
    font-weight: 500;
}


/* Responsive Styles - SAME as food modal */

@media (max-width: 768px) {
    .wide_gv_photography_modal {
        padding: 15px;
    }
    .wide_gv_modal_content {
        max-width: 100%;
        max-height: 95vh;
    }
    .form_row {
        flex-direction: column;
        gap: 15px;
    }
    .form_group.half {
        width: 100%;
    }
    .wide_gv_modal_header {
        height: 160px;
    }
    .modal_header_icon {
        top: 20px;
        width: 70px;
        height: 70px;
        font-size: 40px;
    }
    .modal_header_info {
        padding: 20px 20px 15px;
    }
    .modal_header_info h3 {
        font-size: 24px;
    }
    .wide_gv_modal_body {
        padding: 20px;
    }
    .form_group label {
        font-size: 18px;
    }
    .wide_gv_modal_footer {
        padding: 20px;
    }
    .photography_footer_buttons {
        flex-direction: column;
    }
    .wide_gv_modal_btn {
        width: 100%;
    }
    .wide_gv_modal_close {
        width: 36px;
        height: 36px;
        font-size: 20px;
        top: 15px;
        right: 15px;
    }
    .cart_item_summary {
        padding: 20px;
    }
    .summary_row {
        flex-direction: column;
        gap: 4px;
    }
    .summary_label {
        flex: none;
        width: 100%;
    }
    .summary_value {
        text-align: left;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .wide_gv_modal_header {
        height: 150px;
    }
    .modal_header_icon {
        width: 60px;
        height: 60px;
        font-size: 36px;
    }
    .modal_header_info h3 {
        font-size: 22px;
    }
    .form_group label {
        font-size: 17px;
    }
    .form_icon {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }
    .form_hint {
        font-size: 13px;
        padding-left: 42px;
    }
    .wide_gv_select_input,
    .wide_gv_number_input,
    .wide_gv_textarea_input {
        padding: 14px 16px;
        font-size: 15px;
    }
    #wide_gv_photography_cart_notification {
        bottom: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}


/* Accessibility */

.wide_gv_modal_close:focus,
.wide_gv_modal_btn:focus,
.wide_gv_select_input:focus,
.wide_gv_number_input:focus,
.wide_gv_textarea_input:focus {
    outline: 2px solid var(--photography-accent);
    outline-offset: 2px;
}