@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300..700&display=swap');

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    font-family: "Quicksand", sans-serif;
    color: #333;
    background: linear-gradient(to bottom right, #f9f9f9, #eaeaea);
}

.app-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-image: url("bg/field2.jpg");
    background-size:cover;
    background-attachment:fixed;
}

.container {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    max-width: 960px;
    margin: 0 auto;
}

button.continue {
    margin-top: 2rem;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

    button.continue:hover {
        background-color: #111;
    }

.page-wrapper {
    min-height: 100vh;
    padding-bottom: 100px; /* room for menu */
}

.page-outer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 100px); /* account for menu height */
    padding: 2rem;
}

.page-card {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.05);
    width: 100%;
    max-width: 960px;
    text-align:center;
}

    .page-card h1 {
        font-family: "Quicksand", sans-serif;
        font-optical-sizing: auto;
        font-size: clamp(2.5rem, 6vw, 4rem);
        font-weight: 400;
        margin-bottom: 1rem;
        color: #222;
    }

    .page-card h4 {
        font-family: "Quicksand", sans-serif;
        font-size: 1.25rem;
        font-weight: 400;
        color: #555;
        margin-bottom: 2rem;
    }

    .page-card ul {
        text-align: left;
        padding-left: 1.5rem;
        margin-top: 1rem;
    }

    .page-card li {
        margin-bottom: 0.75rem;
        line-height: 1.6;
    }



.menu_buttons {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.5);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.total_price {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.5);
    padding: 1rem 2rem;
    display: flex;
    justify-content: center;
    text-align: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
    
    font-weight: 400;
    font-size: clamp(1rem, 1.2vw + 0.4rem, 1.5rem);
    line-height: 1.2;
}

.arrNav {
    font-size: 1rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    background-color: #333;
    color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: background-color 0.2s ease, transform 0.15s ease;
}

    .arrNav:hover {
        background-color: #111;
        transform: translateY(-1px);
    }

.arrow-left {
    margin-right: auto;
}

.arrow-right {
    margin-left: auto;
}

.page-card {
    animation: fadeInUp 0.75s ease both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.case-card {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.case-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 600;
}

.case-person-form {
    margin-bottom: 1rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

.person-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 1rem;
    cursor: pointer;
    transition: box-shadow 0.2s ease;
    height: 100%;
}

    .person-card:hover {
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

.person-name {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.person-contact {
    font-size: 0.9rem;
    color: #666;
}

.card-title {
    font-weight: 600;
}

img {
    object-fit: cover;
}

.check-icon {
    display: inline-block;
    animation: fadeScaleIn 0.3s ease-out;
    transform-origin: center;
}

@keyframes fadeScaleIn {
    0% {
        opacity: 0;
        transform: scale(0.5) rotate(-20deg);
    }

    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.btn {
    transition: background-color 0.3s ease, color 0.3s ease;
}

.summary-html {
    text-align: left;
    line-height: 1.6;
}

.validation-errors {color:red;}

.access-code-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 2rem;
}

.access-code-card {
    max-width: 500px;
    width: 100%;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    text-align: center;
}

.access-code-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.access-code-subtitle {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.access-code-error {
    color: #dc3545;
    font-weight: 500;
    margin-bottom: 1rem;
}

.access-code-input {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    margin-bottom: 1rem;
    box-sizing: border-box;
}

.access-code-button {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

    .access-code-button:hover:not(:disabled) {
        background-color: #0056b3;
    }

    .access-code-button:disabled {
        background-color: #6c757d;
        cursor: not-allowed;
        opacity: 0.7;
    }

.access-code-input:disabled {
    background-color: #e9ecef;
    cursor: not-allowed;
}

/* Loading Spinner */
.loading-spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    border: 4px solid rgba(0, 123, 255, 0.1);
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.loading-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    text-align: center;
}

.loading-subtext {
    font-size: 1rem;
    color: #666;
    text-align: center;
    margin-bottom: 0;
}

/* Album Photo Container with Delete Button */
.album-photo-container {
    position: relative;
    display: inline-block;
    width: 100%;
}

.album-photo-container img {
    width: 100%;
    height: auto;
    display: block;
}

.album-photo-delete-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(220, 53, 69, 0.9);
    color: white;
    border: 2px solid white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s ease;
    opacity: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.album-photo-container:hover .album-photo-delete-btn {
    opacity: 1;
}

.album-photo-delete-btn:hover {
    background-color: rgba(200, 35, 51, 1);
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.album-photo-delete-btn:active {
    transform: scale(0.95);
}

.text-right {
    text-align: right;
}

.w-100 {
    width: 100%;
}

.product-card {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 10px;
    height: 100%;
    background-color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-card-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.product-image {
    width: 100%;
    height: 100%;
    max-width: 250px;
    object-fit: cover;
    border-radius: 4px;
    object-fit: contain !important;
    margin-bottom: 10px;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
    height:35px
}

.product-info {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.product-price {
    font-weight: bold;
    margin-top: 8px;
    font-size: 1rem;
}

@media (min-width: 769px) {
    .product-card-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .product-image {
        width: 100%;
        margin-bottom: 10px;
    }

    .product-info {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .product-card-inner {
        flex-direction: row;
        align-items: center;
        text-align: left;
    }

    .product-image {
        width: 100px;
        height: auto;
        margin-bottom: 0;
        margin-right: 12px;
        flex-shrink: 0;
    }

    .product-info {
       flex-grow: 1;
    }
}

.connectionsSwitchLabel {
    top:-15px !important;
    padding-left:0 !important;
}

#ArrangerBiographyForm .e-label-top {
    width:100% !important;
    text-align:left !important;
    padding:0;
    padding-left:10px;
}

.package-section {
    padding: 15px;
}

.packageListingTable td {
    vertical-align: middle;
}
.selectionTypes-container {
    display: flex;
    justify-content: center;
    padding: 1rem 0;
}

.selectionTypes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

    .selectionTypes li {
        white-space: nowrap;
        padding: 0.5rem 1rem;
        border: 1px solid #ccc;
        border-radius: 0.5rem;
        background-color: #f0f0f0;
        cursor: pointer;
        font-weight: 500;
        transition: background-color 0.2s, color 0.2s;
    }

        .selectionTypes li:hover {
            background-color: #e0e0e0;
        }

        .selectionTypes li.active {
            background-color: #00c292;
            color: white;
            border-color: #00c292;
        }

/* Error Boundary Styling */
.error-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 50vh;
    padding: 2rem;
}

.error-card {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 400px;
}

    .error-card h2 {
        color: #dc3545;
        margin-bottom: 1rem;
    }

    .error-card p {
        color: #6c757d;
        margin-bottom: 1.5rem;
    }

    .error-card button {
        margin: 0.25rem;
    }
