/* Anti Gravity Styles */

:root {
    --primary-color: #4285f4;
    --secondary-color: #34a853;
    --bg-color: #f0f2f5;
    --card-bg: #ffffff;
    --text-color: #202124;
    --shadow-soft: 0 10px 20px rgba(0, 0, 0, 0.05), 0 6px 6px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 15px 30px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.05);
    --radius: 16px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.ag-canvas {
    max-width: 1000px;
    margin: 40px auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.ag-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
}

.ag-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.ag-card h2 {
    margin-top: 0;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #5f6368;
    font-size: 14px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #dadce0;
    border-radius: 8px;
    font-size: 16px;
    transition: var(--transition);
    box-sizing: border-box;
    font-family: inherit;
}

input:focus,
textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.2);
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

th {
    text-align: left;
    padding: 10px;
    color: #5f6368;
    font-weight: 500;
    border-bottom: 2px solid #f1f3f4;
}

td {
    padding: 10px;
    vertical-align: top;
}

.btn-remove {
    background: #ea4335;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--transition);
}

.btn-remove:hover {
    background: #d93025;
    transform: scale(1.1);
}

/* Buttons */
button,
.btn-pay,
.btn-secondary,
.btn-whatsapp {
    padding: 12px 24px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    width: 100%;
}

.btn-primary:hover {
    background: #3367d6;
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
}

.btn-secondary {
    background: #f1f3f4;
    color: #3c4043;
}

.btn-secondary:hover {
    background: #e8eaed;
}

.btn-pay {
    background: #5f259f;
    /* PhonePe color */
    color: white;
    margin-right: 10px;
}

.btn-whatsapp {
    background: #25d366;
    color: white;
}

.totals-section {
    margin-top: 20px;
    text-align: right;
    border-top: 1px solid #f1f3f4;
    padding-top: 20px;
}

.total-display {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
    margin-top: 10px;
}

/* Floating Animation Keyframes (Optional subtle movement) */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-5px);
    }

    100% {
        transform: translateY(0px);
    }
}

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

.floating-card:nth-child(2) {
    animation-delay: 1s;
}

.floating-card:nth-child(3) {
    animation-delay: 2s;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .ag-canvas {
        padding: 10px;
    }

    .ag-card {
        padding: 20px;
    }

    table,
    thead,
    tbody,
    th,
    td,
    tr {
        display: block;
    }

    thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    tr {
        margin-bottom: 15px;
        border-bottom: 1px solid #eee;
        padding-bottom: 15px;
    }

    td {
        border: none;
        position: relative;
        padding-left: 0;
    }
}