/* Formulir Digital Product */
.digital-product-form {
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 750px;
    margin: 20px auto;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Heading */
.digital-product-form h2 {
    text-align: center;
    font-size: 24px;
    color: #fff;
    margin-bottom: 20px;
}

/* Form Fields */
.digital-product-form label {
    font-size: 14px;
    color: white; 
    margin-bottom: 5px;
    margin-left: 4px !important;
}

.digital-product-form input[type="text"],
.digital-product-form input[type="tel"],
.digital-product-form input[type="email"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 15px;
}

.digital-product-form input[type="text"]:focus,
.digital-product-form input[type="tel"]:focus,
.digital-product-form input[type="email"]:focus {
    border-color: #3498db;
    outline: none;
}

/* Tombol Selesaikan Order */
#button-submit {
    background: #1e90ff; /* Biru Royal */
    color: white;
    font-size: 16px;
    font-weight: bold;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: block;
    width: 100%;
    text-align: center;
    transition: background 0.3s ease-in-out, transform 0.2s;
    box-shadow: 0 4px 10px rgba(30, 144, 255, 0.3);
}

/* Hover effect */
#button-submit:hover {
    background: #3399ff; /* Lebih terang sedikit */
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(30, 144, 255, 0.4);
}

/* Active/Click Effect */
#button-submit:active {
    transform: translateY(1px);
    box-shadow: 0 3px 8px rgba(30, 144, 255, 0.3);
}

/* Disabled State */
#button-submit:disabled {
    background: #555;
    cursor: not-allowed;
    box-shadow: none;
}

/* Result Coupon */
.result-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
    padding: 5px;
    border-radius: 10px;
    padding-left: 1rem;
    font-size: 13px !important;
}

.result-error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
    padding: 5px;
    border-radius: 10px;
    padding-left: 1rem;
    font-size: 13px !important;
}

/* Styling Table */
.payment-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #222;
    color: #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* HEADER STYLE */
.payment-table th {
    padding: 14px 15px;
    background: #444;
    color: #fff;
    font-size: 18px;
    text-transform: uppercase;
    font-weight: bold;
    text-align: left;
    border-bottom: 3px solid #555;
}
.payment-table th:last-child {
    text-align: right;
}
.payment-table td {
    padding: 12px 15px;
    font-size: 15px;
    border-bottom: 1px solid #444; /* Darker Border */
}
.payment-table td:last-child {
    text-align: right;
}
.payment-table tr:last-child td {
    font-size: 18px;
    font-weight: bold;
    background: #111;
    border-top: 2px solid #555;
    color: #28a745; /* Green for Total */
}
.discount-amount {
    color: #ff4d4d;
    font-weight: bold;
    text-decoration: line-through;
}
.payment-table tr:hover {
    background: #333;
}

/* Loading */

.loading-container {
    margin-top: 0.5rem;  /* my-5 */
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;  /* px-2 */
    padding-right: 0.5rem;
    display: none;  /* hidden */
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
}

.spinner {
    display: inline-block;
    width: 1.5rem;  /* size-6 */
    height: 1.5rem;
    border: 3px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    color: #2563eb;  /* text-blue-600 */
}

.loading-text {
    margin-left: 0.75rem !important;  /* ml-3 */
    color: #d1d5db !important;  /* text-gray-300 */
    font-size: 13px !important;
    margin: auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Menghilangkan arrow pada input number */
input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Menghilangkan arrow pada input number di Firefox */
/* input[type=number] {
    -moz-appearance: textfield;
} */

/* Bendera untuk telephone */
/* Pastikan ukuran dan padding konsisten */
.iti {
    width: 100%;
}

.iti input {
    width: 100% !important;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Dropdown negara */
.iti__country-list {
    background-color: #14232f !important;
    border: 1px solid #ccc;
    border-radius: 10px;
    color: #fff;
    border: 1px solid #ccc;
    z-index: 9999;
    max-height: 200px;
    overflow-y: auto;
}

/* Hover list */
.iti__country-list li:hover {
    background-color: #2e506b;
}

/* Flag padding */
.iti__flag-container {
    padding: 0 10px;
}

.iti__selected-dial-code {
    font-size: 14px;
    color: #ddd;
}

/* Responsive Design */
@media (max-width: 600px) {
    .digital-product-form {
        width: 100% !important;
        padding: 10px !important;
		margin: 0 !important;
    }

    .digital-product-form h2 {
        font-size: 20px;
		margin-top: 20px;
    }

    .digital-product-form input[type="text"],
	.digital-product-form input[type="tel"],
    .digital-product-form input[type="email"] {
        padding: 10px;
        font-size: 16px !important;
    }

    .digital-product-form button {
        font-size: 14px;
        padding: 10px 15px;
    }
}