/* common.css - Shared styles for all pages */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Roboto:wght@300;400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Archivo:ital,wght@0,100..900;1,100..900&family=Questrial&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

/* Base Styles */
body {
    font-family: 'Questrial', sans-serif;
    color: #333;
    line-height: 1.6;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.container-custom {
    border-top-left-radius: 40px;
    border-top-right-radius: 32px;
    padding: 5px;
    margin-top: -40px;
    position: relative;
}

.bd-30 {
    border-radius: 30px !important;
    box-shadow: -1px 0px 20px 1px #5b57577a !important;
}

/* Hide scrollbar but allow scrolling */
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

/* Header Styles */
.hero-bg {
    background-image: linear-gradient(rgb(0 0 0 / 0%), rgb(0 0 0 / 0%)), url(uploads/hero.png);
    background-size: cover;
    background-position: center;
    transition: all 0.5s ease;
}

/* Form Elements */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="time"],
textarea {
    width: 100%;
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #ec4899;
    box-shadow: 0 0 0 2px rgba(236, 72, 153, 0.2);
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: #374151;
}

/* Button Styles */
button {
    transition: all 0.2s ease;
}

button:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

button:not(:disabled):active {
    transform: translateY(1px);
}

button:disabled {
    opacity: 0.8;
    cursor: not-allowed;
}

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

.spinner {
    display: inline-block;
    width: 1.2em;
    height: 1.2em;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.7s linear infinite;
    margin-right: 0.5rem;
    vertical-align: middle;
}

.spinner-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Floating animation */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.floating {
    animation: float 3s ease-in-out infinite;
}

/* Side Menu Styles */
.side-menu {
    transition: transform 0.3s ease-in-out;
}

/* Photo upload styles */
.photo-upload-container {
    width: 100%;
    height: 32rem;
    border: 2px dashed #d1d5db;
    border-radius: 0.5rem;
    cursor: pointer;
    background-color: #f9fafb;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.photo-upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.photo-preview-container {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-preview {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

/* Delivery option styles */
.delivery-option {
    transition: all 0.3s ease;
    position: relative;
}

.delivery-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* Style for the selected option */
.delivery-option.ring-2 {
    box-shadow: 0 4px 15px 7px rgba(0, 0, 0, 0.1);
}

/* Card styles */
.card {
    background-color: #ffffff;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
}

.card-subtitle {
    color: #6b7280;
    margin-top: 0.25rem;
}

/* Preview styles */
.preview-frame {
    width: 100%;
    max-width: 32rem;
    margin: 0 auto;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Modals */
.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
}

.modal-content {
    background-color: #ffffff;
    border-radius: 0.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    max-width: 28rem;
    width: 100%;
    padding: 1.5rem;
    text-align: center;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container-custom {
        border-radius: 20px;
    }

    .card-header, .card-body {
        padding: 1rem;
    }

    .preview-frame {
        max-width: 100%;
    }
}

/* Frames preview styling */
.profile-card {
    width: 210mm; /* A4 width */
    height: 297mm; /* A4 height */
    margin: 0 auto;
    display: flex;
    background-color: #f7f3e8;
    position: relative;
    page-break-after: always;
    overflow: hidden;
}

.profile-card .left-column {
    width: 30%;
    height: 100%;
    padding: 40px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.profile-card .right-column {
    width: 70%;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    background-size: cover;
    background-position: center;
}

.profile-card .header {
    width: 100%;
    text-align: center;
    position: absolute;
    top: 20px;
    z-index: 10;
}

.profile-card .pet-name {
    font-family: 'Playfair Display', serif;
    font-size: 6rem;
    font-weight: 700;
    margin-bottom: 0;
    line-height: 1;
    color: #000;
}

.profile-card .pet-title {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.5rem;
    margin-bottom: 40px;
    color: #333;
}

.profile-card .info-section {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-card .icon {
    width: 40px;
    height: 40px;
    margin-bottom: 8px;
}

.profile-card .label {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.profile-card .value {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    line-height: 1.3;
    max-width: 200px;
    margin: 0 auto;
}

.profile-card .pet-image-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    margin-top: 60px; /* Make room for the header */
}

.profile-card .pet-image {
    max-height: 100%;
    object-fit: cover;
    border-radius: 10px;
    width: 100%;
    height: 80%;
}

.profile-card .parents {
    position: absolute;
    bottom: 40px;
    right: 30px;
    text-align: right;
}

.profile-card .parents-label {
    font-style: italic;
    margin-bottom: 5px;
}

.profile-card .parents-names {
    font-family: 'Playfair Display', serif;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Location map */
#locationMap {
  transition: all 0.5s ease;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
}

#locationMap:not(.hidden) {
  max-height: 250px;
  opacity: 1;
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}

#locationRequiredNote {
  transition: all 0.3s ease;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
}

#locationRequiredNote:not(.hidden) {
  max-height: 100px;
  opacity: 1;
}

/* Print specific styles */
@page {
    size: A4;
    margin: 0;
    background-color: #f7f3e8 !important;
}

@media print {
    html, body {
        width: 210mm;
        height: 297mm;
        background-color: #f7f3e8 !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        color-adjust: exact !important;
        margin: 0;
        padding: 0;
    }

    .profile-card {
        width: 210mm;
        height: 297mm;
        margin: 0;
        border: none;
        box-shadow: none;
        background-color: #f7f3e8 !important;
        page-break-inside: avoid;
        page-break-after: always;
    }

    .profile-card .left-column {
        background-color: #f7f3e8 !important;
        page-break-inside: avoid;
    }

    .profile-card .right-column {
        background-color: #f7f3e8 !important;
        page-break-inside: avoid;
    }

    .profile-card .pet-image {
        max-height: 80%;
        height: 90vh;
    }

    .profile-card .pet-image-container {
        margin-top: 60px;
    }

    .watermark-overlay {
        display: none !important;
    }
}

/* Mobile adjustments for profile card */
@media screen and (max-width: 1024px) {
    .profile-card {
        transform: scale(0.4);
        transform-origin: top left;
    }
}

@media screen and (max-width: 768px) {
    .profile-card {
        transform: scale(0.4);
        transform-origin: top left;
    }
}

@media screen and (max-width: 640px) {
    .profile-card {
        transform: scale(0.4);
        transform-origin: top left;
    }
}

@media screen and (max-width: 480px) {
    .profile-card {
        transform: scale(0.4);
        transform-origin: top left;
    }
}

@media screen and (max-width: 375px) {
    .profile-card {
        transform: scale(0.4);
        transform-origin: top left;
    }
}
.card-bg{
  background: linear-gradient(to bottom left, rgba(240, 235, 226, 0.1), rgba(240, 235, 226, 1)) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-radius: 16px !important;
  --globalnav-backdrop-filter: saturate(180%) blur(20px) !important;
  margin-top: -75px !important;
}
#shippingPrice{
  font-size:12px;
}
#itemTypeLabel{
  font-size: 12px;
}
.new-bg{
  background: linear-gradient(to bottom left, rgba(240, 235, 226, 0.1), rgba(240, 235, 226, 1)) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    --globalnav-backdrop-filter: saturate(180%) blur(20px) !important;
}
