/* Order Form Styles */

.order-form {
    margin-top: 20px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    font-family: 'Myriad Pro', 'Myriad', sans-serif;
}

.order-form fieldset {
    border: none;
    background: white;
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 5px;
}

.order-form legend {
    font-weight: 600;
    font-size: 1.25rem;
    line-height: 1.25;
    margin-bottom: 10px;
    font-family: 'Myriad Pro', 'Myriad', sans-serif;
}

.order-form label, .order-form select, .order-form input, .order-form textarea, .order-form p {
    display: block;
    margin-top: 8px;
    margin-bottom: 8px;
    font-family: 'Myriad Pro', 'Myriad', sans-serif;
}

.order-form p {
    font-weight: 400;
}

.order-form input[type="text"],
.order-form input[type="email"],
.order-form input[type="tel"],
.order-form input[type="number"],
.order-form select,
.order-form textarea {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #d5d5d5;
    border-radius: 12px;
    font-size: 1em;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-family: 'Myriad Pro', 'Myriad', sans-serif;
}

/* Placeholder text styling */
.order-form input::placeholder,
.order-form textarea::placeholder {
    font-weight: 300;
    opacity: 0.6;
}

.order-form textarea {
    min-height: 100px;
}

.order-form ul {
    padding-left: 20px;
}

.order-form ul li {
    margin-bottom: 8px;
}

.order-form button[type="submit"] {
    background-color: #cc0000;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 1em;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Myriad Pro', 'Myriad', sans-serif;
}

.order-form button[type="submit"]:hover {
    background-color: #a00000;
}

.order-form input[type="checkbox"] {
    margin-right: 8px;
}

/* Disclaimer checkbox styling */
.order-form .disclaimer-checkbox {
    display: flex;
    align-items: flex-start;
    margin-top: 10px;
}

.order-form .disclaimer-checkbox input[type="checkbox"] {
    margin-right: 8px;
    margin-top: 2px;
    flex-shrink: 0;
}

.order-form .disclaimer-checkbox span {
    display: inline;
    margin: 0;
}

/* Dynamic form field styles */
#mediumFormatOptions,
#mangaOptions,
#calendarOptions,
#customSquareSize,
#customMangaSize {
    margin-top: 10px;
    padding: 0;
    background-color: white;
    border-radius: 4px;
    border: none;
}

#panoramaMessage {
    margin-top: 10px;
    padding: 15px;
    background-color: #fff5f5;
    border-radius: 4px;
    border: 1px solid #ffcccc;
}

#panoramaMessage p {
    margin: 0;
    line-height: 1.4;
}

/* Required field indicators */
.order-form .required-asterisk {
    color: #cc0000;
    font-weight: bold;
}

/* Update cart button styles */
.update-cart-btn {
    background: #f8f8f8;
    border: 1px solid #ddd;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    margin: 10px 0;
    transition: all 0.2s ease;
}

.update-cart-btn:hover {
    background: #efefef;
    border-color: #ccc;
}

/* Highlight required button */
.highlight-required {
    animation: pulse-border 1.5s infinite;
    border-color: #cc0000 !important;
    box-shadow: 0 0 5px rgba(204, 0, 0, 0.5);
}

@keyframes pulse-border {
    0% { box-shadow: 0 0 0 0 rgba(204, 0, 0, 0.4); }
    70% { box-shadow: 0 0 0 8px rgba(204, 0, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(204, 0, 0, 0); }
}



/* Responsive layout for imageType and imageLink fields */
.image-type-link-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.image-type-field {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
    display: flex;
    flex-direction: column;
}

.image-link-field {
    flex: 2;
    min-width: 300px;
    display: flex;
    flex-direction: column;
}

.image-type-field label,
.image-link-field label {
    margin-bottom: 5px;
}

.image-type-field select,
.image-link-field input {
    width: 100%;
}

/* On smaller screens, stack vertically */
@media (max-width: 600px) {
    .image-type-link-row {
        flex-direction: column;
        gap: 0;
    }
    
    .image-type-field,
    .image-link-field {
        min-width: auto;
        margin-bottom: 15px;
    }
}

/* Responsive layout for shipping address fields */
.address-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.address-field {
    flex: 1;
    min-width: 150px;
    display: flex;
    flex-direction: column;
}

.address-field input {
    width: 100%;
}

/* Three-column row for address number, street name, floor/unit */
.address-row-3col .address-field {
    min-width: 120px;
}

/* Two-column row for postal code, city, state/province */
.address-row-2col .address-field {
    min-width: 180px;
}

/* Make street address field wider */
.street-address-field {
    flex: 2;
}

/* Help text styling */
.field-help {
    font-size: 0.85em;
    color: #666;
    margin-top: 3px;
    font-style: italic;
}

/* Country field full width */
.country-field {
    width: 100%;
    margin-bottom: 15px;
}

.country-field input {
    width: 100%;
}

/* On smaller screens, stack address fields vertically */
@media (max-width: 768px) {
    .address-row {
        flex-direction: column;
        gap: 0;
    }
    
    .address-field {
        min-width: auto;
        margin-bottom: 15px;
    }
}

/* Responsive layout for print size and quantity fields */
.print-size-quantity-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.print-size-field,
.quantity-field {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
}

.print-size-field label,
.quantity-field label {
    margin-bottom: 5px;
}

.print-size-field select,
.quantity-field input {
    width: 100%;
}

/* Responsive layout for name and contact info fields */
.name-contact-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.name-field,
.contact-field {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
}

.name-field input,
.contact-field input {
    width: 100%;
}

/* International Telephone Input styling customization */
.iti {
    width: 100%;
    display: block;
    margin-top: 8px;
    margin-bottom: 10px;
}

.iti__input {
    width: 100%;
    padding: 8px;
    margin: 0;
    border: 1px solid #d5d5d5;
    border-radius: 12px;
    font-size: 1em;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-family: 'Myriad Pro', 'Myriad', sans-serif;
    box-sizing: border-box;
}

.iti__input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* Ensure phone number placeholder is always visible */
.iti__input::placeholder {
    color: rgba(0, 0, 0, 0.6);
    opacity: 1;
    font-weight: 300;
}

.iti__input::-webkit-input-placeholder {
    color: rgba(0, 0, 0, 0.6);
    opacity: 1;
    font-weight: 300;
}

.iti__input::-moz-placeholder {
    color: rgba(0, 0, 0, 0.6);
    opacity: 1;
    font-weight: 300;
}

.iti__input:-ms-input-placeholder {
    color: rgba(0, 0, 0, 0.6);
    opacity: 1;
    font-weight: 300;
}

/* Reset any default margins on the intl-tel-input wrapper */
.contact-field .iti {
    margin-top: 8px;
    margin-bottom: 10px;
}

/* On smaller screens, stack these fields vertically */
@media (max-width: 600px) {
    .print-size-quantity-row,
    .name-contact-row {
        flex-direction: column;
        gap: 0;
    }
    
    .print-size-field,
    .quantity-field,
    .name-field,
    .contact-field {
        min-width: auto;
        margin-bottom: 15px;
    }
}

/* Country selector styling */
.country-selector {
    position: relative;
    width: 100%;
}

#countrySearch {
    width: 100%;
    padding: 8px 12px;
    margin-bottom: 0;
    border: 1px solid #d5d5d5;
    border-radius: 12px;
    font-size: 1em;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-family: 'Myriad Pro', 'Myriad', sans-serif;
    background-color: white;
    cursor: pointer;
}

#countrySearch:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
    outline: none;
}

.country-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #d5d5d5;
    border-top: none;
    border-radius: 0 0 12px 12px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.country-dropdown.show {
    display: block;
}

.country-option {
    padding: 10px 12px;
    cursor: pointer;
    font-family: 'Myriad Pro', 'Myriad', sans-serif;
    font-size: 1em;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.country-option:hover,
.country-option.highlighted {
    background-color: #f8f9fa;
}

.country-option:last-child {
    border-bottom: none;
}

.country-option.selected {
    background-color: #e3f2fd;
    color: #1976d2;
    font-weight: 500;
}


