/* Reset dan Base Styling */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary-color: #4361ee;
    --secondary-color: #3a0ca3;
    --accent-color: #4cc9f0;
    --danger-color: #f72585;
    --success-color: #4bb543;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    100% { transform: scale(1.05); opacity: 1; }
}

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

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

@keyframes shine {
    0% { transform: translateX(-100%) rotate(30deg); }
    100% { transform: translateX(100%) rotate(30deg); }
}

/* Initial Load Screen */
.initial-load {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeOut 1.5s ease-in-out 3.0s forwards;
}

@keyframes fadeOut {
    to { opacity: 0; visibility: hidden; }
}

.initial-load .loader {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.initial-load .logo {
    text-align: center;
    margin-bottom: 30px;
    animation: fadeIn 1s ease-out;
}

.initial-load .logo i {
    font-size: 50px;
    color: white;
    margin-bottom: 10px;
}

.initial-load .logo span {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: white;
    letter-spacing: 2px;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.loading-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.loading-text {
    margin-top: 30px;
    color: var(--dark-color);
    font-weight: 500;
    animation: pulse 1.5s ease-in-out infinite;
}

/* Benefits Section */
.benefits-container {
    margin-top: 40px;
    padding: 25px;
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.9), rgba(233, 236, 239, 0.9));
    border-radius: 15px;
    border: 1px solid rgba(209, 216, 224, 0.5);
    transform: translateY(20px);
    opacity: 0;
    animation: slideUp 0.6s ease-out 2.8s forwards;
}

.benefits-title {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 18px;
    text-align: center;
}

.benefits-list {
    list-style: none;
    margin-bottom: 25px;
}

.benefits-list li {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    padding-left: 30px;
    position: relative;
}

.benefits-list li i {
    position: absolute;
    left: 0;
    top: 3px;
    color: var(--success-color);
    font-size: 18px;
}

.benefit-title {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.benefit-desc {
    color: #555;
    font-size: 14px;
    padding-left: 5px;
    border-left: 2px solid var(--accent-color);
}

.domain-explanation {
    background: rgba(67, 97, 238, 0.1);
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.explanation-title {
    color: var(--primary-color);
    font-size: 16px;
    margin-bottom: 10px;
}

.explanation-text {
    color: #555;
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.explanation-text i {
    color: var(--primary-color);
    margin-top: 3px;
}

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

@media (max-width: 480px) {
    .benefits-container {
        padding: 15px;
    }
    
    .benefits-title, .explanation-title {
        font-size: 16px;
    }
    
    .benefit-title {
        font-size: 15px;
    }
    
    .benefit-desc, .explanation-text {
        font-size: 13px;
    }
}

/* Loader Animation */
.loader {
    width: 150px;
    height: 150px;
    position: relative;
}

.loader-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 8px solid transparent;
    border-radius: 50%;
    animation: rotate 2s linear infinite;
    border-top-color: var(--primary-color);
    filter: drop-shadow(0 0 10px rgba(67, 97, 238, 0.6)));
}

.loader-ring:nth-child(2) {
    border-top-color: var(--accent-color);
    animation-delay: 0.3s;
    border-width: 6px;
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
}

.loader-ring:nth-child(3) {
    border-top-color: var(--secondary-color);
    animation-delay: 0.6s;
    border-width: 4px;
    width: 60%;
    height: 60%;
    top: 20%;
    left: 20%;
}

/* Floating Background */
.floating-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.15;
}

.circle-1 {
    width: 300px;
    height: 300px;
    background: var(--primary-color);
    top: -50px;
    left: -50px;
    animation: float 8s ease-in-out infinite;
}

.circle-2 {
    width: 400px;
    height: 400px;
    background: var(--accent-color);
    bottom: -100px;
    right: -100px;
    animation: float 10s ease-in-out infinite 2s;
}

.circle-3 {
    width: 200px;
    height: 200px;
    background: var(--secondary-color);
    top: 50%;
    left: 50%;
    animation: float 6s ease-in-out infinite 1s;
}

/* Main Content */
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    min-height: 100vh;
    opacity: 0;
    animation: fadeIn 0.8s ease-out 1.8s forwards;
}

/* Card Container */
.card {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    max-width: 550px;
    margin: 30px auto;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transform: translateY(30px);
    opacity: 0;
    animation: slideUp 0.8s ease-out 2s forwards;
}

.card-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.domain-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 30px;
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3));
}

/* Form Elements */
.form-group {
    margin-bottom: 25px;
    transform: translateY(20px);
    opacity: 0;
    animation: slideUp 0.6s ease-out forwards;
}

.form-group:nth-child(1) { animation-delay: 2.2s; }
.form-group:nth-child(2) { animation-delay: 2.4s; }

label {
    display: block;
    margin-bottom: 12px;
    font-weight: 500;
    color: var(--dark-color);
    font-size: 16px;
}

label i {
    margin-right: 8px;
    color: var(--primary-color);
}

input, select {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e0e6ed;
    border-radius: 12px;
    font-size: 16px;
    transition: var(--transition);
    background-color: rgba(248, 250, 252, 0.8);
    font-family: 'Poppins', sans-serif;
}

input:focus, select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.2);
    outline: none;
    background-color: white;
}

/* Domain Preview */
.domain-preview {
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.8), rgba(233, 236, 239, 0.8));
    padding: 18px;
    border-radius: 12px;
    text-align: center;
    margin: 25px 0;
    font-weight: bold;
    color: var(--dark-color);
    font-size: 18px;
    border: 2px dashed rgba(209, 216, 224, 0.5);
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.domain-preview:hover {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(233, 236, 239, 0.8), rgba(222, 226, 230, 0.8));
    transform: translateY(-3px);
}

.domain-preview i {
    margin-right: 10px;
    color: var(--primary-color);
}

/* Price Display */
.domain-price {
    text-align: center;
    font-size: 17px;
    color: var(--success-color);
    font-weight: bold;
    margin: -15px 0 25px;
}

/* Previous CSS remains the same, add these new styles at the bottom */

/* Domain Status */
.domain-status {
    text-align: center;
    font-size: 15px;
    margin: -10px 0 15px;
    padding: 10px;
    border-radius: 8px;
    background-color: rgba(67, 97, 238, 0.1);
    color: var(--primary-color);
    transition: var(--transition);
}

.domain-status i {
    margin-right: 8px;
}

.domain-status.available {
    background-color: rgba(75, 181, 67, 0.1);
    color: var(--success-color);
}

.domain-status.taken {
    background-color: rgba(247, 37, 133, 0.1);
    color: var(--danger-color);
}

/* Check Domain Button */
.check-btn {
    padding: 15px 20px;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
}

.check-btn:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    transform: translateY(-2px);
}

.check-btn:active {
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .domain-input-container {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .check-btn {
        width: 100%;
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    .domain-input-container {
        flex-direction: column;
    }
    
    .check-btn {
        width: 100%;
        margin-top: 10px;
    }
}

.domain-price i {
    margin-right: 8px;
}

/* Button */
button {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    animation: slideUp 0.6s ease-out 2.6s forwards;
}

.button-text {
    position: relative;
    z-index: 1;
}

.button-icon {
    position: relative;
    z-index: 1;
    font-size: 20px;
    transition: transform 0.3s ease;
}

button:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(67, 97, 238, 0.3));
}

button:hover .button-icon {
    transform: translateX(5px);
}

button:active {
    transform: translateY(0);
}

button::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0.3),
        rgba(255, 255, 255, 0.1)
    );
    transform: rotate(30deg);
    animation: shine 3s infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.form-submitting button::after {
    opacity: 1;
}

/* Input Container */
.domain-input-container {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Error Message */
.error-message {
    color: var(--danger-color);
    font-size: 14px;
    margin-top: 8px;
    display: none;
    padding: 8px 12px;
    background: rgba(247, 37, 133, 0.1);
    border-radius: 8px;
}

.error-message i {
    margin-right: 6px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .card {
        padding: 30px;
        margin: 20px;
    }
    
    .domain-input-container {
        flex-direction: column;
    }
    
    .floating-bg {
        display: none;
    }
}

@media (max-width: 480px) {
    .card {
        padding: 25px 20px;
    }
    
    .domain-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    button {
        padding: 16px;
    }
}