* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'PingFang SC', Arial, sans-serif;
}

body {
    background: #f3f4f6;
    color: #1f2a44;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    background: linear-gradient(90deg, #1e40af, #3b82f6);
    color: #fff;
    padding: 40px 20px;
    text-align: center;
}

header h1 {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 10px;
}

header p {
    font-size: 18px;
    opacity: 0.9;
}

main {
    max-width: 600px;
    margin: 40px auto;
    padding: 0 20px;
    flex-grow: 1;
}

form {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

input[type="url"], input[type="text"], select {
    width: 100%;
    padding: 14px;
    margin-bottom: 15px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

input[type="url"]:focus, input[type="text"]:focus, select:focus {
    outline: none;
    border-color: #1e40af;
    box-shadow: 0 0 8px rgba(30,64,175,0.2);
}

select {
    appearance: none;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24"><path fill="%236b7280" d="M7 10l5 5 5-5z"/></svg>') no-repeat right 10px center;
    background-size: 12px;
    padding-right: 30px;
}

button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(90deg, #1e40af, #3b82f6);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
}

button:hover {
    background: linear-gradient(90deg, #1e3a8a, #2563eb);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(30,64,175,0.3);
}

.error {
    color: #dc2626;
    font-size: 14px;
    background: #fee2e2;
    padding: 10px;
    border-radius: 8px;
    margin-top: 15px;
    text-align: center;
}

.success {
    color: #15803d;
    font-size: 14px;
    background: #dcfce7;
    padding: 10px;
    border-radius: 8px;
    margin-top: 15px;
    text-align: center;
}

.success a {
    color: #1e40af;
    text-decoration: none;
}

.success a:hover {
    text-decoration: underline;
}

.buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.button {
    display: inline-block;
    padding: 12px 24px;
    background: #e5e7eb;
    color: #374151;
    text-decoration: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    transition: background 0.3s, transform 0.2s;
}

.button:hover {
    background: #d1d5db;
    transform: translateY(-2px);
}

footer {
    text-align: center;
    padding: 20px;
    color: #6b7280;
    font-size: 14px;
}

@media (max-width: 768px) {
    header {
        padding: 30px 15px;
    }

    header h1 {
        font-size: 28px;
    }

    header p {
        font-size: 16px;
    }

    main {
        margin: 20px auto;
        padding: 0 15px;
    }

    form {
        padding: 20px;
    }

    input[type="url"], input[type="text"], select {
        font-size: 14px;
        padding: 12px;
    }

    button {
        font-size: 15px;
        padding: 12px;
    }

    .button {
        font-size: 14px;
        padding: 10px 20px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 24px;
    }

    header p {
        font-size: 14px;
    }

    form {
        padding: 15px;
    }

    input[type="url"], input[type="text"], select {
        font-size: 13px;
    }

    button {
        font-size: 14px;
    }
}