body,
.contents {
    background-color: #e0f3f7;
}

.space-top {
    margin-top: 30px;
}

.main-container {
    padding: 1rem;
}

.card-package,
.form-card {
    background: linear-gradient(135deg, #ffffff, #e6f7f5);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(17, 153, 141, 0.05);
}

.form-card {
    border-radius: 20px;
    padding: 1.5rem;
    width: 100%;
}

.card-package {
    border-radius: 12px;
    padding: 1rem;
    min-height: 130px;
    cursor: pointer;
}

.card-package.active {
    border-color: #11998d;
    box-shadow: 0 4px 12px rgba(17, 153, 141, 0.2);
    background: linear-gradient(135deg, #d1f2ee, #ffffff);
}


.title {
    font-size: 1.3rem;
    font-weight: bold;
    color: #1a202c;
    margin-bottom: 1.5rem;
    text-align: left;
    line-height: 1.3;
}

.input-container {
    background: white;
    border: 2px solid #11998d;
    border-radius: 16px;
    overflow: visible;
    display: flex;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    flex-direction: row;
}

.input-container:focus-within {
    border-color: #3182ce;
    box-shadow: 0 4px 20px rgba(49, 130, 206, 0.15);
}

.input-wrapper {
    flex: 1;
    position: relative;
    min-width: 0;
}

.new-input {
    width: 100%;
    border: none;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    background: transparent;
    color: #2d3748;
    border-radius: 16px 0 0 16px;
}

.email-input:focus,
.subdomain-input:focus {
    outline: none;
    box-shadow: none;
}

.typewriter-placeholder {
    position: absolute;
    top: 0.875rem;
    left: 1rem;
    color: #a0aec0;
    pointer-events: none;
    font-size: 1rem;
    font-weight: 500;
    z-index: 1;
    transition: all 0.3s ease;
}

.typewriter-placeholder.hide {
    opacity: 0;
    transform: translateY(-10px);
}

.cursor {
    animation: blink 1s infinite;
    color: #3182ce;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

.domain-dropdown {
    position: relative;
    border-left: 2px solid #e2e8f0;
    flex-shrink: 0;
}

.domain-button {
    background: #f7fafc;
    border: none;
    padding: 0.875rem 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #4a5568;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: all 0.2s ease;
    justify-content: space-between;
    border-top-right-radius: 16px;
    border-bottom-right-radius: 16px;
    white-space: nowrap;
    max-width: 120px;
    overflow: hidden;
}

.domain-text {
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

.domain-button:hover {
    background: #edf2f7;
}

.domain-button:focus {
    outline: none;
    background: #edf2f7;
}

.chevron {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.chevron.open {
    transform: rotate(180deg);
}

.dropdown-menu-custom {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 1050;
    padding: 0.5rem 0;
    display: none;
    min-width: 140px;
    max-width: 200px;
}

.dropdown-menu-custom.show {
    display: block;
}

.dropdown-item-custom {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    color: #4a5568;
    text-decoration: none;
    background: transparent;
    border: none;
    text-align: left;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-item-custom:hover {
    background: #f7fafc;
    color: #3182ce;
    text-decoration: none;
}

.dropdown-item-custom.active {
    background: #ebf8ff;
    color: #3182ce;
    font-weight: 600;
}

.domain-status {
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.875rem;
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.domain-status.loading {
    color: #6b7280;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
}

.domain-status.success {
    color: #059669;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
}

.domain-status.error {
    color: #dc2626;
    background: #fef2f2;
    border: 1px solid #fecaca;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
}

.status-main {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

.status-icon,
.spinner {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.spinner {
    border: 2px solid #e5e7eb;
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.status-text {
    flex: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.suggestion-text {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.25rem;
    width: 100%;
}

.suggestion-link {
    color: #374151;
    cursor: pointer;
    text-decoration: underline;
}

.suggestion-link:hover {
    color: #3182ce;
}

.new-form-button {
    background: linear-gradient(135deg, #13aea1 0%, #0d776e 100%);
    border: none;
    border-radius: 12px;
    padding: 0.875rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(49, 130, 206, 0.3);
    width: 90%;
}

.new-form-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(49, 130, 206, 0.4);
    color: white;
}

.google-email {
    max-width: 555px;
    text-align: center;
}

/* Mobile-specific styles */
@media (max-width: 767px) {
    .main-container {
        padding: 0.75rem;
    }

    .form-card {
        padding: 1rem;
        border-radius: 16px;
    }

    .title {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }

    .input-container {
        border-radius: 12px;
    }

    .subdomain-input {
        padding: 0.75rem;
        font-size: 0.9rem;
        border-radius: 12px 0 0 12px;
    }

    .typewriter-placeholder {
        top: 0.75rem;
        left: 0.75rem;
        font-size: 0.9rem;
    }

    .domain-button {
        padding: 0.75rem 0.5rem;
        font-size: 0.8rem;
        max-width: 100px;
        border-top-right-radius: 12px;
        border-bottom-right-radius: 12px;
    }

    .chevron {
        width: 12px;
        height: 12px;
    }

    .dropdown-menu-custom {
        right: -10px;
        border-radius: 8px;
        min-width: 120px;
    }

    .dropdown-item-custom {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }

    .domain-status {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
        border-radius: 8px;
    }

    .status-icon,
    .spinner {
        width: 14px;
        height: 14px;
    }

    .suggestion-text {
        font-size: 0.7rem;
    }

    .google-email,
    .new-form-button {
        width: 100%;
        max-width: 100%;
    }
}

/* Extra small devices */
@media (max-width: 576px) {
    .input-container {
        flex-direction: column;
        border-radius: 12px;
    }

    .input-wrapper {
        width: 100%;
    }

    .subdomain-input {
        border-radius: 12px 12px 0 0;
        border-bottom: 1px solid #e2e8f0;
    }

    .domain-dropdown {
        border-left: none;
        border-top: 2px solid #e2e8f0;
    }

    .domain-button {
        max-width: none;
        width: 100%;
        border-radius: 0 0 12px 12px;
        justify-content: center;
        padding: 0.75rem;
    }

    .dropdown-menu-custom {
        left: 0;
        right: 0;
        width: 100%;
        border-radius: 8px;
        min-width: auto;
    }

    .title {
        font-size: 1.1rem;
    }
}

/* Landscape phones */
@media (max-width: 480px) and (orientation: landscape) {
    .main-container {
        padding: 0.5rem;
    }

    .form-card {
        padding: 0.75rem;
    }

    .title {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
}

@media (min-width: 768px) and (max-width:788px) {
    .new-form-button {
        font-size: .95624rem
    }
}
